diff --git a/apps/workflowengine/lib/Service/RuleMatcher.php b/apps/workflowengine/lib/Service/RuleMatcher.php index d73fe752f747a..99a5db8a9d06b 100644 --- a/apps/workflowengine/lib/Service/RuleMatcher.php +++ b/apps/workflowengine/lib/Service/RuleMatcher.php @@ -143,7 +143,7 @@ public function getMatchingOperations(string $class, bool $returnFirstMatchingOp if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) { $ctx = new LogContext(); $ctx - ->setScopes($scopeCandidate) + ->setScopes([$scopeCandidate]) ->setEntity($this->entity) ->setOperation($this->operation); $this->logger->logScopeExpansion($ctx);