Skip to content

Commit b417b51

Browse files
committed
Fixed minor issue with App callstack
1 parent 7720b47 commit b417b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

App.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ public function setCallstack(ExecutableInterface $executable)
140140
*/
141141
public function executeCallstack(): Response
142142
{
143-
if (empty($this->callstack) || is_null($next = array_shift($callstack))) {
143+
if (empty($this->callstack) || is_null($next = array_shift($this->callstack))) {
144144
throw new LogicException('Trying to execute an empty callstack!');
145145
}
146146

147-
if (is_string($next)) $next = new $next($callstack);
147+
if (is_string($next)) $next = new $next($this->callstack);
148148

149149
if (!$next instanceof ExecutableInterface) {
150150
throw new LogicException('Callstack contains an object which is not an instance of Executable!');

0 commit comments

Comments
 (0)