ScopeResolverDispatcher: better type hinting

This commit is contained in:
Julien Fastré 2023-09-26 16:59:09 +02:00
parent 1070d33670
commit d8b0e0671a
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

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