Fixed issue with SimpleRouter::error not firing within group (issue: #551).

- Fixed variable incorrect variable reference in `InputItem` class.
- Added new `Router::addExceptionHandler` method.
- Added parameter types in `Url` class.
- Fixed phpdoc parameter-type for `Request::getHeader`.
This commit is contained in:
Simon Sessingø
2021-05-19 22:00:42 +02:00
parent 0c329e4c5b
commit 4c5f825c97
5 changed files with 12 additions and 8 deletions
+1 -3
View File
@@ -427,9 +427,7 @@ class SimpleRouter
{
$callbackHandler = new CallbackExceptionHandler($callback);
static::router()->addRoute(
(new RouteGroup())->addExceptionHandler($callbackHandler)
);
static::router()->addExceptionHandler($callbackHandler);
return $callbackHandler;
}