From d8b0e0671ab2be870b3a0290c3d4a6d4cb2081d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 26 Sep 2023 16:59:09 +0200 Subject: [PATCH] ScopeResolverDispatcher: better type hinting --- .../Security/Resolver/ScopeResolverDispatcher.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)) {