Fix single "ScopeContext" passed to "setScopes"
"setScopes" expects an array, but a single "ScopeContext" was being passed instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
48bdd322a2
commit
46e374860b
|
@ -143,7 +143,7 @@ class RuleMatcher implements IRuleMatcher {
|
|||
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
||||
$ctx = new LogContext();
|
||||
$ctx
|
||||
->setScopes($scopeCandidate)
|
||||
->setScopes([$scopeCandidate])
|
||||
->setEntity($this->entity)
|
||||
->setOperation($this->operation);
|
||||
$this->logger->logScopeExpansion($ctx);
|
||||
|
|
Loading…
Reference in New Issue