From e8b3c54235d5124451ef039eb8e55b5d859e17ec Mon Sep 17 00:00:00 2001 From: Jagepard Date: Fri, 23 May 2025 09:53:29 +0300 Subject: [PATCH] add zend.exception_ignore_args --- src/Router.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Router.php b/src/Router.php index c5d6c65..1e878f5 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']);