[Security/Core] fix PHP8 deprecation

This commit is contained in:
Nicolas Grekas 2020-05-24 11:45:24 +02:00
parent 6e7658baff
commit aa53bdb77b
1 changed files with 1 additions and 1 deletions

View File

@ -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);