diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php index 4390d68a6e..accea45934 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php @@ -28,7 +28,7 @@ class SwitchUserToken extends UsernamePasswordToken * * @throws \InvalidArgumentException */ - public function __construct($user, $credentials, string $providerKey, array $roles = [], TokenInterface $originalToken) + public function __construct($user, $credentials, string $providerKey, array $roles, TokenInterface $originalToken) { parent::__construct($user, $credentials, $providerKey, $roles);