From 087fe60a5ce6d64b686b94b1b715bfa9821101ae Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Mon, 19 Feb 2024 17:38:23 +0100 Subject: [PATCH] make defaults for jackrabbit nullable --- .../Tools/Console/Command/JackrabbitCommand.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php b/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php index d325a82a..ddea462f 100644 --- a/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php +++ b/src/Jackalope/Tools/Console/Command/JackrabbitCommand.php @@ -19,17 +19,17 @@ class JackrabbitCommand extends Command /** * Path to Jackrabbit jar file. */ - private string $jackrabbit_jar; + private ?string $jackrabbit_jar = null; /** * Path to the Jackrabbit workspace dir. */ - private string $workspace_dir; + private ?string $workspace_dir = null; /** * TCP port of the Jackrabbit HTTP server. */ - private int $port; + private ?int $port = null; protected function configure(): void { @@ -50,12 +50,12 @@ protected function configure(): void ); } - protected function setJackrabbitPath($jackrabbit_jar): void + protected function setJackrabbitPath(?string $jackrabbit_jar): void { $this->jackrabbit_jar = $jackrabbit_jar; } - protected function setWorkspaceDir($workspace_dir): void + protected function setWorkspaceDir(?string $workspace_dir): void { $this->workspace_dir = $workspace_dir; }