Skip to content

Commit

Permalink
Fix: Switch workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pKallert committed Jul 23, 2024
1 parent dd5ed20 commit 68f90f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private function requireNonCircularRelationBetweenWorkspaces(Workspace $workspac
}

$nextBaseWorkspace = $baseWorkspace;
while ($nextBaseWorkspace->baseWorkspaceName !== null) {
while ($nextBaseWorkspace->baseWorkspaceName->value !== 'live') {

Check failure on line 965 in Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test linting-unit-functionaltests-mysql (deps: highest)

Cannot access property $value on Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName|null.

Check failure on line 965 in Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 Test linting-unit-functionaltests-mysql (deps: highest)

Cannot access property $value on Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName|null.
if ($workspace->workspaceName->equals($nextBaseWorkspace->baseWorkspaceName)) {

Check failure on line 966 in Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Test linting-unit-functionaltests-mysql (deps: highest)

Parameter #1 $other of method Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName::equals() expects Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName, Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName|null given.

Check failure on line 966 in Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 Test linting-unit-functionaltests-mysql (deps: highest)

Parameter #1 $other of method Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName::equals() expects Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName, Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName|null given.
throw new CircularRelationBetweenWorkspacesException(sprintf('The workspace "%s" is already on the path of the target workspace "%s".', $workspace->workspaceName->value, $baseWorkspace->workspaceName->value));
}
Expand Down

0 comments on commit 68f90f0

Please sign in to comment.