From 726d53080499ffe74617c6dfc7d5c9f48ec2e799 Mon Sep 17 00:00:00 2001 From: Lasse Mammen Date: Thu, 29 Feb 2024 09:24:16 +0000 Subject: [PATCH] fix: nullable access token Tested-by: marge-bot Part-of: --- src/AuthServiceUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AuthServiceUser.php b/src/AuthServiceUser.php index 54a8723..0e62866 100644 --- a/src/AuthServiceUser.php +++ b/src/AuthServiceUser.php @@ -125,7 +125,7 @@ public function setRoles(array $roles): static $this->roles = $roles; return $this; } - public function setAccessToken(AccessTokenInterface $token): static + public function setAccessToken(?AccessTokenInterface $token): static { $this->token = $token; return $this;