diff --git a/src/Router.php b/src/Router.php index c5d6c655..1e878f53 100755 --- a/src/Router.php +++ b/src/Router.php @@ -175,7 +175,9 @@ public function directCall(array $route, $params = null): void $this->handleMiddleware($route['middleware']['before']); } - $this->callActionThroughReflection($params, $action, $controller); + ((int) ini_get('zend.exception_ignore_args') === 1) + ? $this->callActionThroughReflection($params, $action, $controller) + : $this->callActionThroughException($params, $action, $controller); if (isset($route['middleware']['after'])) { $this->handleMiddleware($route['middleware']['after']);