This commit is contained in:
2021-04-20 11:56:01 +08:00
parent 97bbff35fd
commit 017a5b19dc
2 changed files with 5 additions and 10 deletions
+4 -4
View File
@@ -529,14 +529,14 @@ class Node extends HttpService
private function httpFilter(): mixed
{
try {
$dispatchParams = func_num_args();
$dispatchParams = func_get_args();
if (empty($dispatchParams)) {
$dispatchParams = \request();
$dispatchParams = [\request()];
}
if ($this->handler instanceof Closure) {
return call_user_func($this->handler, $dispatchParams);
return call_user_func($this->handler, ...$dispatchParams);
}
return $this->runWith($this->callback, $dispatchParams);
return $this->runWith($this->callback, ...$dispatchParams);
return $this->runFilter(...$dispatchParams);
} catch (Throwable $throwable) {
$this->addError($throwable, 'throwable');