Skip to content

Commit

Permalink
Added null as explicit return type (?TokenInterface)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltar van der Berg committed Sep 25, 2017
1 parent a40c94d commit 1ba4dd9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)));
Expand Down

0 comments on commit 1ba4dd9

Please sign in to comment.