Skip to content

Commit 97a1176

Browse files
authored
Merge pull request #128 from Jagepard/wip
add zend.exception_ignore_args
2 parents e126fc5 + e8b3c54 commit 97a1176

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Router.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ public function directCall(array $route, $params = null): void
175175
$this->handleMiddleware($route['middleware']['before']);
176176
}
177177

178-
$this->callActionThroughReflection($params, $action, $controller);
178+
((int) ini_get('zend.exception_ignore_args') === 1)
179+
? $this->callActionThroughReflection($params, $action, $controller)
180+
: $this->callActionThroughException($params, $action, $controller);
179181

180182
if (isset($route['middleware']['after'])) {
181183
$this->handleMiddleware($route['middleware']['after']);

0 commit comments

Comments
 (0)