diff --git a/src/Symfony/Component/Security/Http/Impersonate/ImpersonateUrlGenerator.php b/src/Symfony/Component/Security/Http/Impersonate/ImpersonateUrlGenerator.php index 84fe51b102a1b..a99dd89f0225d 100644 --- a/src/Symfony/Component/Security/Http/Impersonate/ImpersonateUrlGenerator.php +++ b/src/Symfony/Component/Security/Http/Impersonate/ImpersonateUrlGenerator.php @@ -66,7 +66,7 @@ private function buildPath(string $targetUri = null, string $identifier = Switch return ''; } - if (!$this->isImpersonatedUser() && $identifier == SwitchUserListener::EXIT_VALUE){ + if (!$this->isImpersonatedUser() && SwitchUserListener::EXIT_VALUE == $identifier) { return ''; }