diff --git a/src/User/UserProvider.php b/src/User/UserProvider.php index 7b9366c8..07c34a04 100644 --- a/src/User/UserProvider.php +++ b/src/User/UserProvider.php @@ -60,7 +60,7 @@ public function __invoke(): ?AuditorUserInterface return null; } - return new User($identifier, $username); + return new User((string) $identifier, $username); } private function getTokenUser(): ?UserInterface