Skip to content

Commit

Permalink
Fixed minor issue with App callstack
Browse files Browse the repository at this point in the history
  • Loading branch information
cpt-erwin committed Jan 30, 2021
1 parent b417b51 commit 7d87028
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 7d87028

Please sign in to comment.