From 7d87028560479bb66b6f10f5da9c0cee783574de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tu=C4=8Dek?= Date: Sat, 30 Jan 2021 18:32:36 +0100 Subject: [PATCH] Fixed minor issue with App callstack --- App.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /**