From aa53bdb77bb5536c7fc59212df40bfae592fca39 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 24 May 2020 11:45:24 +0200 Subject: [PATCH] [Security/Core] fix PHP8 deprecation --- .../Security/Core/Authentication/Token/SwitchUserToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);