From d007734ff24923b0256ca3f653bb451af457e23b Mon Sep 17 00:00:00 2001 From: Jagepard Date: Wed, 21 May 2025 15:20:25 +0300 Subject: [PATCH] add ini_get --- src/Router.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Router.php b/src/Router.php index c200f69..b1c83e5 100755 --- a/src/Router.php +++ b/src/Router.php @@ -175,8 +175,9 @@ public function directCall(array $route, $params = null): void $this->handleMiddleware($route['middleware']['before']); } - $this->callActionThroughException($params, $action, $controller); - // $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']);