Skip to content

Commit 7fc8a7a

Browse files
[Security/Core] fix PHP8 deprecation
1 parent 0581f4d commit 7fc8a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authentication/Token/SwitchUserToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SwitchUserToken extends UsernamePasswordToken
2828
*
2929
* @throws \InvalidArgumentException
3030
*/
31-
public function __construct($user, $credentials, string $providerKey, array $roles = [], TokenInterface $originalToken)
31+
public function __construct($user, $credentials, string $providerKey, array $roles, TokenInterface $originalToken)
3232
{
3333
parent::__construct($user, $credentials, $providerKey, $roles);
3434

0 commit comments

Comments
 (0)