Skip to content

Commit

Permalink
allow exitIf in define (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvoody- authored Jul 30, 2023
1 parent e3c707a commit c024123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Latte/Essential/Nodes/JumpNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function create(Tag $tag): static
$allowed = match ($tag->name) {
'breakIf', 'continueIf' => ['for', 'foreach', 'while'],
'skipIf' => ['foreach'],
'exitIf' => ['block', null],
'exitIf' => ['block', 'define', null],
};
for (
$parent = $tag->parent;
Expand Down

0 comments on commit c024123

Please sign in to comment.