Skip to content

Commit 515fbc1

Browse files
authored
Merge pull request #633 from skipperbent/v5-release
V5 release
2 parents 89b766f + 0aea867 commit 515fbc1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"require-dev": {
3434
"phpunit/phpunit": "^8",
3535
"mockery/mockery": "^1",
36-
"phpstan/phpstan": "^0",
37-
"phpstan/phpstan-phpunit": "^0",
38-
"phpstan/phpstan-deprecation-rules": "^0",
39-
"phpstan/phpstan-strict-rules": "^0"
36+
"phpstan/phpstan": "^1",
37+
"phpstan/phpstan-phpunit": "^1",
38+
"phpstan/phpstan-deprecation-rules": "^1",
39+
"phpstan/phpstan-strict-rules": "^1"
4040
},
4141
"scripts": {
4242
"test": [

src/Pecee/SimpleRouter/Router.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,12 @@ public function start(): ?string
342342
'csrfVerifier' => $this->csrfVerifier,
343343
]);
344344

345-
/* Verify csrf token for request */
346-
$this->csrfVerifier->handle($this->request);
345+
try {
346+
/* Verify csrf token for request */
347+
$this->csrfVerifier->handle($this->request);
348+
} catch(\Exception $e) {
349+
$this->handleException($e);
350+
}
347351
}
348352

349353
$output = $this->routeRequest();

0 commit comments

Comments
 (0)