Skip to content

Commit

Permalink
BUGFIX: Fix argument order of implode()
Browse files Browse the repository at this point in the history
Passing the separator after the array is not supported since PHP 8.0 anymore
  • Loading branch information
koehnlein committed Mar 25, 2024
1 parent c6594e3 commit 7f79fdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ function (Workspace $workspace) {
// Find the position of the workspace, a smaller value means more priority
$workspacePosition = array_search($node->getWorkspace()->getName(), $workspaceNames);
if ($workspacePosition === false) {
throw new Exception\NodeException(sprintf('Node workspace "%s" not found in allowed workspaces (%s), this could result from a detached workspace entity in the context.', $node->getWorkspace()->getName(), implode($workspaceNames, ', ')), 1413902143);
throw new Exception\NodeException(sprintf('Node workspace "%s" not found in allowed workspaces (%s), this could result from a detached workspace entity in the context.', $node->getWorkspace()->getName(), implode(', ', $workspaceNames)), 1413902143);
}

// Find positions in dimensions, add workspace in front for highest priority
Expand Down

0 comments on commit 7f79fdf

Please sign in to comment.