Skip to content

Commit 8ae09cd

Browse files
committed
fix: revert removal of checking whether array key isset
1 parent 7931f55 commit 8ae09cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VerifyAccessToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function handle($request, Closure $next, ...$scopes)
8888
$result = json_decode((string) $e->getResponse()->getBody(), true);
8989

9090
if (isset($result['error'])) {
91-
throw new AuthenticationException($result['error']['title']);
91+
throw new AuthenticationException($result['error']['title'] ?? '');
9292
}
9393
}
9494

0 commit comments

Comments
 (0)