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();
|
$signer = new Sha256();
|
||||||
try {
|
try {
|
||||||
$token = (new Parser())->parse((string) $token);
|
$token = (new Parser())->parse((string) $token);
|
||||||
} catch (InvalidArgumentException $e) {
|
} catch (InvalidArgumentException | RuntimeException $e) {
|
||||||
return;
|
|
||||||
} catch (RuntimeException $e) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($token->verify($signer, config('app.key'))) {
|
if ($token->verify($signer, config('app.key'))) {
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
"ext-intl": "*",
|
"php": ">=7.1.0",
|
||||||
"php": ">=7.0.0",
|
|
||||||
"laravel/framework": "5.4.*",
|
"laravel/framework": "5.4.*",
|
||||||
"jonnybarnes/indieweb": "dev-master",
|
"jonnybarnes/indieweb": "dev-master",
|
||||||
"jonnybarnes/webmentions-parser": "0.4.*",
|
"jonnybarnes/webmentions-parser": "0.4.*",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue