ScopeResolverDispatcher: better type hinting

This commit is contained in:
2023-09-26 16:59:09 +02:00
parent 1070d33670
commit d8b0e0671a

View File

@@ -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)) {