Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Classes/Controller/TerminalCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public function getCommandsAction(): void
*/
public function invokeCommandAction(
string $commandName,
string $argument = null,
Node $siteNode = null,
Node $documentNode = null,
Node $focusedNode = null
?string $argument = null,
?Node $siteNode = null,
?Node $documentNode = null,
?Node $focusedNode = null
): void
{
$this->response->setContentType('application/json');
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/CommandContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getSiteNode(): ?Node
return $this->siteNode;
}

public function withSiteNode(Node $siteNode = null): CommandContext
public function withSiteNode(?Node $siteNode = null): CommandContext
{
$instance = clone $this;
$instance->siteNode = $siteNode;
Expand All @@ -49,7 +49,7 @@ public function getDocumentNode(): ?Node
return $this->documentNode;
}

public function withDocumentNode(Node $documentNode = null): CommandContext
public function withDocumentNode(?Node $documentNode = null): CommandContext
{
$instance = clone $this;
$instance->documentNode = $documentNode;
Expand All @@ -61,7 +61,7 @@ public function getFocusedNode(): ?Node
return $this->focusedNode;
}

public function withFocusedNode(Node $focusedNode = null): CommandContext
public function withFocusedNode(?Node $focusedNode = null): CommandContext
{
$instance = clone $this;
$instance->focusedNode = $focusedNode;
Expand Down