This commit is contained in:
2020-12-16 15:45:10 +08:00
parent 21c1aaa42c
commit 8ed352347c
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -438,7 +438,6 @@ class Node extends Application
if (empty($this->callback)) { if (empty($this->callback)) {
return JSON::to(404, $node->_error ?? 'Page not found.'); return JSON::to(404, $node->_error ?? 'Page not found.');
} }
var_dump($this->callback);
$requestParams = func_get_args(); $requestParams = func_get_args();
if (func_num_args() > 0) { if (func_num_args() > 0) {
return call_user_func($this->callback, ...$requestParams); return call_user_func($this->callback, ...$requestParams);
+1
View File
@@ -51,6 +51,7 @@ class Reduce
if ($pipe instanceof Middleware) { if ($pipe instanceof Middleware) {
return $pipe->onHandler($passable, $stack); return $pipe->onHandler($passable, $stack);
} else { } else {
var_dump($pipe);
return call_user_func($pipe, $passable, $stack); return call_user_func($pipe, $passable, $stack);
} }
}; };