diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php index c82f6d7a6d..3f166babf2 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php @@ -508,7 +508,7 @@ static function ($handle) use ($commandSimulator, $matchingCommands, $remainingC yield $this->reopenContentStreamWithoutConstraintChecks( $workspace->currentContentStreamId ); - match($workspace->status) { + match ($workspace->status) { // If the workspace is up-to-date it must be a problem regarding that the order of events cannot be changed WorkspaceStatus::UP_TO_DATE => throw PartialWorkspaceRebaseFailed::duringPartialPublish($commandSimulator->getConflictingEvents()), @@ -636,7 +636,7 @@ static function ($handle) use ($commandsToKeep): void { yield $this->reopenContentStreamWithoutConstraintChecks( $workspace->currentContentStreamId ); - match($workspace->status) { + match ($workspace->status) { // If the workspace is up-to-date it must be a problem regarding that the order of events cannot be changed WorkspaceStatus::UP_TO_DATE => throw PartialWorkspaceRebaseFailed::duringPartialDiscard($commandSimulator->getConflictingEvents()), diff --git a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/GenericCommandExecutionAndEventPublication.php b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/GenericCommandExecutionAndEventPublication.php index 6a37dd2a9d..0f4b3d45fa 100644 --- a/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/GenericCommandExecutionAndEventPublication.php +++ b/Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/GenericCommandExecutionAndEventPublication.php @@ -341,7 +341,7 @@ public function theLastCommandShouldHaveThrownTheWorkspaceRebaseFailedWith(strin $exception = $this->lastCommandException; Assert::assertNotNull($exception, 'Command did not throw exception'); - match($shortExceptionName) { + match ($shortExceptionName) { 'WorkspaceRebaseFailed' => Assert::assertInstanceOf(WorkspaceRebaseFailed::class, $exception, sprintf('Actual exception: %s (%s): %s', get_class($exception), $exception->getCode(), $exception->getMessage())), 'PartialWorkspaceRebaseFailed' => Assert::assertInstanceOf(PartialWorkspaceRebaseFailed::class, $exception, sprintf('Actual exception: %s (%s): %s', get_class($exception), $exception->getCode(), $exception->getMessage())), };