[Security/Core] fix PHP8 deprecation
This commit is contained in:
parent
6e7658baff
commit
aa53bdb77b
|
@ -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);
|
||||
|
||||
|
|
Reference in New Issue