Fix more quotes in exception messages

This commit is contained in:
Fabien Potencier 2020-03-16 17:47:01 +01:00
parent e7e5f334e7
commit 955752b74c

View File

@ -115,7 +115,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface
$this->userChecker->checkPreAuth($user);
if (true !== $checkCredentialsResult = $guardAuthenticator->checkCredentials($token->getCredentials(), $user)) {
if (false !== $checkCredentialsResult) {
throw new \TypeError(sprintf('%s::checkCredentials() must return a boolean value.', \get_class($guardAuthenticator)));
throw new \TypeError(sprintf('"%s::checkCredentials()" must return a boolean value.', \get_class($guardAuthenticator)));
}
throw new BadCredentialsException(sprintf('Authentication failed because "%s::checkCredentials()" did not return true.', \get_class($guardAuthenticator)));