diff --git a/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php b/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php index 81a1602e7..afec7c6ad 100644 --- a/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php +++ b/src/Bundle/ChillMainBundle/Security/Resolver/ScopeResolverDispatcher.php @@ -32,12 +32,7 @@ final readonly class ScopeResolverDispatcher return false; } - /** - * @param $entity - * - * @return iterable|Scope|Scope[] - */ - public function resolveScope($entity, ?array $options = []): iterable|\Chill\MainBundle\Entity\Scope + public function resolveScope(mixed $entity, ?array $options = []): iterable|\Chill\MainBundle\Entity\Scope|null { foreach ($this->resolvers as $resolver) { if ($resolver->supports($entity, $options)) {