From 4ad74dc278820aeda32b9a5a92d0b81549077075 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 24 Oct 2023 15:18:59 +0000 Subject: [PATCH] [rector] Rector fixes --- src/Cloud/DTO/ReferencedWorkflow.php | 2 +- src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cloud/DTO/ReferencedWorkflow.php b/src/Cloud/DTO/ReferencedWorkflow.php index ea7e3b62..0ec177eb 100644 --- a/src/Cloud/DTO/ReferencedWorkflow.php +++ b/src/Cloud/DTO/ReferencedWorkflow.php @@ -4,7 +4,7 @@ namespace Kiboko\Component\Satellite\Cloud\DTO; -final class ReferencedWorkflow implements WorkflowInterface +final readonly class ReferencedWorkflow implements WorkflowInterface { public function __construct( private WorkflowId $id, diff --git a/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php b/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php index eddf6265..85e131d4 100644 --- a/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php +++ b/src/Cloud/Handler/Workflow/DeclareWorkflowCommandHandler.php @@ -16,6 +16,7 @@ public function __construct( public function __invoke(Cloud\Command\Workflow\DeclareWorkflowCommand $command): Cloud\Event\Workflow\WorkflowDeclared { + $result = null; try { /** @var Api\Model\WorkflowDeclareWorkflowCommandJsonldRead $result */ $result = $this->client->declareWorkflowWorkflowCollection(