Improve type declaration

This commit is contained in:
Julien Fastré 2023-10-04 11:21:39 +02:00
parent e3559774fd
commit 58e189ee07
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 6 additions and 1 deletions

View File

@ -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
*

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