Skip to content

Commit

Permalink
Fix deprecation introduced by Twig 3.12
Browse files Browse the repository at this point in the history
Related to phpmyadmin#14

Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed Sep 8, 2024
1 parent 469924f commit 461835b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Node/TransNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 461835b

Please sign in to comment.