From d892a51e44436d9f6587b83dcad7c7ba0cf6a1ee Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Thu, 10 Mar 2022 10:04:57 +0100 Subject: [PATCH] Fix return value of `NullToken::getUser()` --- .../Component/Security/Core/Authentication/Token/NullToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php b/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php index f6a36561c19b3..1b30d5a7ccda6 100644 --- a/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php +++ b/src/Symfony/Component/Security/Core/Authentication/Token/NullToken.php @@ -33,7 +33,7 @@ public function getCredentials() public function getUser() { - return ''; + return null; } public function setUser($user)