diff --git a/src/Models/Stateful/User.php b/src/Models/Stateful/User.php index 51ca423..30a1ca7 100644 --- a/src/Models/Stateful/User.php +++ b/src/Models/Stateful/User.php @@ -8,5 +8,5 @@ class User extends \Auth0\Symfony\Models\User implements UserInterface { - protected $roleAuthenticatedUsing = 'ROLE_USING_SESSION'; + protected array $roleAuthenticatedUsing = ['ROLE_USING_SESSION']; } diff --git a/src/Models/Stateless/User.php b/src/Models/Stateless/User.php index 2aba026..8ffa829 100644 --- a/src/Models/Stateless/User.php +++ b/src/Models/Stateless/User.php @@ -8,5 +8,5 @@ class User extends \Auth0\Symfony\Models\User implements UserInterface { - protected $roleAuthenticatedUsing = 'ROLE_USING_TOKEN'; + protected array $roleAuthenticatedUsing = ['ROLE_USING_TOKEN']; }