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