From c024123a2ca68316a54243a5b6ebe4be804f3a2e Mon Sep 17 00:00:00 2001 From: vvoody- Date: Sun, 30 Jul 2023 18:02:35 +0200 Subject: [PATCH] allow exitIf in define (#334) --- src/Latte/Essential/Nodes/JumpNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Latte/Essential/Nodes/JumpNode.php b/src/Latte/Essential/Nodes/JumpNode.php index e1c1ee16d..cc305fc1b 100644 --- a/src/Latte/Essential/Nodes/JumpNode.php +++ b/src/Latte/Essential/Nodes/JumpNode.php @@ -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;