diff --git a/src/Bundle/ChillMainBundle/Repository/UserACLAwareRepositoryInterface.php b/src/Bundle/ChillMainBundle/Repository/UserACLAwareRepositoryInterface.php index 6a51a9c0a..28ada8b69 100644 --- a/src/Bundle/ChillMainBundle/Repository/UserACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillMainBundle/Repository/UserACLAwareRepositoryInterface.php @@ -20,7 +20,7 @@ interface UserACLAwareRepositoryInterface /** * Find the users reaching the given center and scope, for the given role. * - * @param array|Center|Center[] $center + * @param array|Center|Center[]|null $center * @param array|Scope|Scope[]|null $scope * @param bool $onlyActive true if get only active users * diff --git a/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php b/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php index afec7c6ad..93dec24da 100644 --- a/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php +++ b/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php @@ -32,6 +32,11 @@ final readonly class ScopeResolverDispatcher return false; } + /** + * @param mixed $entity + * @param array|null $options + * @return iterable|Scope|null + */ public function resolveScope(mixed $entity, ?array $options = []): iterable|\Chill\MainBundle\Entity\Scope|null { foreach ($this->resolvers as $resolver) {