mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 21:32:13 +00:00
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:
@@ -427,9 +427,7 @@ class SimpleRouter
|
||||
{
|
||||
$callbackHandler = new CallbackExceptionHandler($callback);
|
||||
|
||||
static::router()->addRoute(
|
||||
(new RouteGroup())->addExceptionHandler($callbackHandler)
|
||||
);
|
||||
static::router()->addExceptionHandler($callbackHandler);
|
||||
|
||||
return $callbackHandler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user