diff --git a/App.php b/App.php index c8fccae..ebf43d1 100644 --- a/App.php +++ b/App.php @@ -132,7 +132,8 @@ public function setCallstack(ExecutableInterface $executable) throw new LogicException('Apps Middlewares cannot be empty while using callstack!'); } - array_push($this->callstack, $this->middlewares, $executable); + $this->callstack = array_merge($this->callstack, $this->middlewares); + array_push($this->callstack, $executable); } /**