You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 4.0:
Fix Clidumper tests
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
Apply fixers
Disable the native_constant_invocation fixer until it can be scoped
Update the list of excluded files for the CS fixer
@@ -64,7 +64,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token)
64
64
}
65
65
66
66
if (null !== $response) {
67
-
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationSuccess method must return null to use the default success handler, or a Response object', get_class($this->simpleAuthenticator)));
67
+
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationSuccess method must return null to use the default success handler, or a Response object', \get_class($this->simpleAuthenticator)));
68
68
}
69
69
}
70
70
@@ -82,7 +82,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
82
82
{
83
83
if ($this->simpleAuthenticatorinstanceof AuthenticationFailureHandlerInterface) {
84
84
if ($this->logger) {
85
-
$this->logger->debug('Selected an authentication failure handler.', array('handler' => get_class($this->simpleAuthenticator)));
85
+
$this->logger->debug('Selected an authentication failure handler.', array('handler' => \get_class($this->simpleAuthenticator)));
@@ -91,7 +91,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
91
91
}
92
92
93
93
if (null !== $response) {
94
-
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationFailure method must return null to use the default failure handler, or a Response object', get_class($this->simpleAuthenticator)));
94
+
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationFailure method must return null to use the default failure handler, or a Response object', \get_class($this->simpleAuthenticator)));
@@ -164,7 +164,7 @@ protected function refreshUser(TokenInterface $token)
164
164
165
165
foreach ($this->userProvidersas$provider) {
166
166
if (!$providerinstanceof UserProviderInterface) {
167
-
thrownew \InvalidArgumentException(sprintf('User provider "%s" must implement "%s".', get_class($provider), UserProviderInterface::class));
167
+
thrownew \InvalidArgumentException(sprintf('User provider "%s" must implement "%s".', \get_class($provider), UserProviderInterface::class));
168
168
}
169
169
170
170
try {
@@ -174,14 +174,14 @@ protected function refreshUser(TokenInterface $token)
174
174
// tokens can be deauthenticated if the user has been changed.
175
175
if (!$token->isAuthenticated()) {
176
176
if (null !== $this->logger) {
177
-
$this->logger->debug('Token was deauthenticated after trying to refresh it.', array('username' => $refreshedUser->getUsername(), 'provider' => get_class($provider)));
177
+
$this->logger->debug('Token was deauthenticated after trying to refresh it.', array('username' => $refreshedUser->getUsername(), 'provider' => \get_class($provider)));
@@ -198,7 +198,7 @@ protected function refreshUser(TokenInterface $token)
198
198
// let's try the next user provider
199
199
} catch (UsernameNotFoundException$e) {
200
200
if (null !== $this->logger) {
201
-
$this->logger->warning('Username could not be found in the selected user provider.', array('username' => $e->getUsername(), 'provider' => get_class($provider)));
201
+
$this->logger->warning('Username could not be found in the selected user provider.', array('username' => $e->getUsername(), 'provider' => \get_class($provider)));
202
202
}
203
203
204
204
$userNotFoundByProvider = true;
@@ -209,7 +209,7 @@ protected function refreshUser(TokenInterface $token)
209
209
returnnull;
210
210
}
211
211
212
-
thrownew \RuntimeException(sprintf('There is no user provider for user "%s".', get_class($user)));
212
+
thrownew \RuntimeException(sprintf('There is no user provider for user "%s".', \get_class($user)));
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationFailure method must return null or a Response object', get_class($this->simpleAuthenticator)));
115
+
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationFailure method must return null or a Response object', \get_class($this->simpleAuthenticator)));
116
116
}
117
117
}
118
118
@@ -124,7 +124,7 @@ public function handle(GetResponseEvent $event)
124
124
if ($responseinstanceof Response) {
125
125
$event->setResponse($response);
126
126
} elseif (null !== $response) {
127
-
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationSuccess method must return null or a Response object', get_class($this->simpleAuthenticator)));
127
+
thrownew \UnexpectedValueException(sprintf('The %s::onAuthenticationSuccess method must return null or a Response object', \get_class($this->simpleAuthenticator)));
thrownewAuthenticationException('The cookie is invalid.');
36
36
}
37
37
@@ -50,7 +50,7 @@ protected function processAutoLoginCookie(array $cookieParts, Request $request)
50
50
}
51
51
52
52
if (!$userinstanceof UserInterface) {
53
-
thrownew \RuntimeException(sprintf('The UserProviderInterface implementation must return an instance of UserInterface, but returned "%s".', get_class($user)));
53
+
thrownew \RuntimeException(sprintf('The UserProviderInterface implementation must return an instance of UserInterface, but returned "%s".', \get_class($user)));
54
54
}
55
55
56
56
if (true !== hash_equals($this->generateCookieHash($class, $username, $expires, $user->getPassword()), $hash)) {
0 commit comments