mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Improve type declaration
This commit is contained in:
parent
e3559774fd
commit
58e189ee07
@ -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
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user