From 461835b5b01d85c229f3fa7259d142c8db514b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Sun, 8 Sep 2024 12:53:57 -0300 Subject: [PATCH] Fix deprecation introduced by Twig 3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to https://github.com/phpmyadmin/twig-i18n-extension/pull/14 Signed-off-by: MaurĂ­cio Meneghini Fauth --- src/Node/TransNode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Node/TransNode.php b/src/Node/TransNode.php index 2782631..07f67ef 100644 --- a/src/Node/TransNode.php +++ b/src/Node/TransNode.php @@ -102,12 +102,13 @@ public function __construct( } /** @phpstan-ignore-next-line */ - if (Environment::VERSION_ID >= 301200) { + if (Environment::VERSION_ID >= 31300 || Environment::VERSION_ID >= 301200) { parent::__construct($nodes, [], $lineno); return; } + /** @phpstan-ignore-next-line */ parent::__construct($nodes, [], $lineno, $tag); }