Skip to content

Commit

Permalink
Merge remote-tracking branch 'stof/clean_callstack'
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Apr 20, 2020
2 parents 5b898b7 + c3a80d7 commit 52c8b7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,7 @@ protected function compileChildren($stms, OutputBlock $out, $traceName = '')
$ret = $this->compileChild($stm, $out);

if (isset($ret)) {
$this->popCallStack();
return $ret;
}
}
Expand Down Expand Up @@ -1929,6 +1930,7 @@ protected function compileChildrenNoReturn($stms, OutputBlock $out, $selfParent

if (isset($ret)) {
$this->throwError('@return may only be used within a function');
$this->popCallStack();

return;
}
Expand Down

0 comments on commit 52c8b7d

Please sign in to comment.