Skip to content

Commit 6c0507b

Browse files
authored
A sprintf is missing
A sprintf is missing when throw a LogicException in the constructor of AuthorizationChecker class.
1 parent 2ebbdcc commit 6c0507b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authorization/AuthorizationChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AuthorizationChecker implements AuthorizationCheckerInterface
3131
public function __construct(TokenStorageInterface $tokenStorage, AccessDecisionManagerInterface $accessDecisionManager, bool $exceptionOnNoToken = false)
3232
{
3333
if ($exceptionOnNoToken) {
34-
throw new \LogicException('Argument $exceptionOnNoToken of "%s()" must be set to "false".', __METHOD__);
34+
throw new \LogicException(sprintf('Argument $exceptionOnNoToken of "%s()" must be set to "false".', __METHOD__));
3535
}
3636

3737
$this->tokenStorage = $tokenStorage;

0 commit comments

Comments
 (0)