Skip to content

Commit 1ba4dd9

Browse files
author
Iltar van der Berg
committed
Added null as explicit return type (?TokenInterface)
1 parent a40c94d commit 1ba4dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected function refreshUser(TokenInterface $token)
174174
}
175175

176176
if ($userNotFoundByProvider) {
177-
return;
177+
return null;
178178
}
179179

180180
throw new \RuntimeException(sprintf('There is no user provider for user "%s".', get_class($user)));

0 commit comments

Comments
 (0)