Improve type declaration

This commit is contained in:
2023-10-04 11:21:39 +02:00
parent e3559774fd
commit 58e189ee07
2 changed files with 6 additions and 1 deletions

View File

@@ -32,6 +32,11 @@ final readonly class ScopeResolverDispatcher
return false;
}
/**
* @param mixed $entity
* @param array|null $options
* @return iterable<Scope>|Scope|null
*/
public function resolveScope(mixed $entity, ?array $options = []): iterable|\Chill\MainBundle\Entity\Scope|null
{
foreach ($this->resolvers as $resolver) {