Skip to content

Commit

Permalink
fix: revert removal of checking whether array key isset
Browse files Browse the repository at this point in the history
  • Loading branch information
robbytaylor committed Jun 26, 2018
1 parent 7931f55 commit 8ae09cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VerifyAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function handle($request, Closure $next, ...$scopes)
$result = json_decode((string) $e->getResponse()->getBody(), true);

if (isset($result['error'])) {
throw new AuthenticationException($result['error']['title']);
throw new AuthenticationException($result['error']['title'] ?? '');
}
}

Expand Down

0 comments on commit 8ae09cd

Please sign in to comment.