Update to use PHP 7.1, and its multiple exception catching

This commit is contained in:
Jonny Barnes 2017-02-27 22:22:52 +00:00
parent b255987423
commit 595b0c5e03
2 changed files with 2 additions and 5 deletions

View file

@ -41,9 +41,7 @@ class TokenService
$signer = new Sha256();
try {
$token = (new Parser())->parse((string) $token);
} catch (InvalidArgumentException $e) {
return;
} catch (RuntimeException $e) {
} catch (InvalidArgumentException | RuntimeException $e) {
return;
}
if ($token->verify($signer, config('app.key'))) {