From 8057bc4a4f6a9ba78da2d3accfdc0e8caae11ce5 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Sat, 16 Dec 2023 22:50:18 -0600 Subject: [PATCH] fix: Variable hint --- src/Models/Stateful/User.php | 2 +- src/Models/Stateless/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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']; }