return null explicitly for nullable return types
This commit is contained in:
parent
241ef0bd7e
commit
884f92b5a5
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class IndieAuthService
|
|||
{
|
||||
$endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain));
|
||||
if ($endpoint === false) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
return $endpoint;
|
||||
|
|
|
@ -45,7 +45,7 @@ class TokenService
|
|||
try {
|
||||
$token = (new Parser())->parse((string) $token);
|
||||
} catch (InvalidArgumentException | RuntimeException $e) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
if ($token->verify($signer, config('app.key'))) {
|
||||
//signuture valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue