Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit cdad268

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: #15331 add infos about deprecated classes to UPGRADE-3.0 [Security] removed useless else condition in SwitchUserListener class. [travis] Tests deps=low with PHP 5.6 [Console] Fix console output with closed stdout
2 parents 79b1d65 + 39fae4d commit cdad268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Http/Firewall/SwitchUserListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ private function attemptSwitchUser(Request $request)
118118
if (false !== $originalToken) {
119119
if ($token->getUsername() === $request->get($this->usernameParameter)) {
120120
return $token;
121-
} else {
122-
throw new \LogicException(sprintf('You are already switched to "%s" user.', $token->getUsername()));
123121
}
122+
123+
throw new \LogicException(sprintf('You are already switched to "%s" user.', $token->getUsername()));
124124
}
125125

126126
if (false === $this->accessDecisionManager->decide($token, array($this->role))) {

0 commit comments

Comments
 (0)