Remove unused dependency on DefaultVoter (+ fix when throwing an exception)

This commit is contained in:
2023-09-13 10:09:42 +02:00
parent d3b68f8f8f
commit cd9611a669
4 changed files with 18 additions and 15 deletions

View File

@@ -41,9 +41,11 @@ class DefaultScopeResolver implements ScopeResolverInterface
}
throw new UnexpectedValueException(
'should be an instanceof %s or %s',
HasScopesInterface::class,
HasScopeInterface::class
sprintf(
'should be an instanceof %s or %s',
HasScopesInterface::class,
HasScopeInterface::class
)
);
}