This commit is contained in:
2020-12-16 15:45:36 +08:00
parent 8ed352347c
commit 7febaf309c
+1 -1
View File
@@ -48,10 +48,10 @@ class Reduce
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
var_dump($pipe);
if ($pipe instanceof Middleware) {
return $pipe->onHandler($passable, $stack);
} else {
var_dump($pipe);
return call_user_func($pipe, $passable, $stack);
}
};