From 859defc6732c45fea5c2929b9e38779910026551 Mon Sep 17 00:00:00 2001 From: helmi <43951764+helmis123@users.noreply.github.com> Date: Mon, 27 Dec 2021 16:20:20 +0100 Subject: [PATCH] A sprintf is missing A sprintf is missing when throw a LogicException in the constructor of AuthorizationChecker class. --- .../Security/Core/Authorization/AuthorizationChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php b/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php index 23a015856e6ce..5946060fbfdf1 100644 --- a/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php +++ b/src/Symfony/Component/Security/Core/Authorization/AuthorizationChecker.php @@ -31,7 +31,7 @@ class AuthorizationChecker implements AuthorizationCheckerInterface public function __construct(TokenStorageInterface $tokenStorage, AccessDecisionManagerInterface $accessDecisionManager, bool $exceptionOnNoToken = false) { if ($exceptionOnNoToken) { - throw new \LogicException('Argument $exceptionOnNoToken of "%s()" must be set to "false".', __METHOD__); + throw new \LogicException(sprintf('Argument $exceptionOnNoToken of "%s()" must be set to "false".', __METHOD__)); } $this->tokenStorage = $tokenStorage;