Skip to content

Commit

Permalink
Actually stop helpers when the closing tag is encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
warlord-hash committed Nov 10, 2021
1 parent 842eb16 commit 797b69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Transpiler.php
Expand Up @@ -77,7 +77,7 @@ public static function helpers() {
}
}

if($stopped === FALSE) {
if($stopped === FALSE && self::$phpEnd === FALSE) {
self::$code = str_replace("fun", "function", self::$code);
}

Expand Down

0 comments on commit 797b69c

Please sign in to comment.