Update to use PHP 7.1, and its multiple exception catching
This commit is contained in:
parent
b255987423
commit
595b0c5e03
2 changed files with 2 additions and 5 deletions
|
@ -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'))) {
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
"license": "CC0-1.0",
|
||||
"type": "project",
|
||||
"require": {
|
||||
"ext-intl": "*",
|
||||
"php": ">=7.0.0",
|
||||
"php": ">=7.1.0",
|
||||
"laravel/framework": "5.4.*",
|
||||
"jonnybarnes/indieweb": "dev-master",
|
||||
"jonnybarnes/webmentions-parser": "0.4.*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue