diff --git a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php index b443fa14881a4..43af1105bf76e 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php @@ -174,7 +174,7 @@ protected function refreshUser(TokenInterface $token) } if ($userNotFoundByProvider) { - return; + return null; } throw new \RuntimeException(sprintf('There is no user provider for user "%s".', get_class($user)));
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: