Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 972ecaf

Browse files
[Security/Core] fix PHP8 deprecation
1 parent a2e5513 commit 972ecaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/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)