From 91693b1f1ce75e394ceed42d2415952d71068fa3 Mon Sep 17 00:00:00 2001 From: Marvin Buchmann Date: Fri, 11 Oct 2024 10:46:53 +0200 Subject: [PATCH] [TASK] Add missing TODO comments --- src/Twig/Node/ExampleNode.php | 1 + src/Twig/Node/ExpandNode.php | 1 + src/Twig/Node/FrameNode.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Twig/Node/ExampleNode.php b/src/Twig/Node/ExampleNode.php index 8919ce3..465eb08 100644 --- a/src/Twig/Node/ExampleNode.php +++ b/src/Twig/Node/ExampleNode.php @@ -48,6 +48,7 @@ public function compile(Compiler $compiler): void $compiler->write('$' . $attributeStorageName . ' = [];' . PHP_EOL); } + // @TODO: drop version check when removing twig < 3.9 support if (version_compare(Environment::VERSION, '3.9.0', '>=')) { // twig >= 3.9 $compiler diff --git a/src/Twig/Node/ExpandNode.php b/src/Twig/Node/ExpandNode.php index 1b07587..9d54b25 100644 --- a/src/Twig/Node/ExpandNode.php +++ b/src/Twig/Node/ExpandNode.php @@ -48,6 +48,7 @@ public function compile(Compiler $compiler) $compiler->write('$' . $attributeStorageName . ' = [];' . PHP_EOL); } + // @TODO: drop version check when removing twig < 3.9 support if (version_compare(Environment::VERSION, '3.9.0', '>=')) { // twig >= 3.9 $compiler diff --git a/src/Twig/Node/FrameNode.php b/src/Twig/Node/FrameNode.php index f644ace..00592c6 100644 --- a/src/Twig/Node/FrameNode.php +++ b/src/Twig/Node/FrameNode.php @@ -48,6 +48,7 @@ public function compile(Compiler $compiler): void $compiler->write('$' . $attributeStorageName . ' = [];' . PHP_EOL); } + // @TODO: drop version check when removing twig < 3.9 support if (version_compare(Environment::VERSION, '3.9.0', '>=')) { // twig >= 3.9 $compiler