Skip to content

Commit

Permalink
Merge pull request #15 from MauricioFauth/twig-3.13
Browse files Browse the repository at this point in the history
Fix deprecation introduced by Twig 3.12
  • Loading branch information
MauricioFauth committed Sep 8, 2024
2 parents 469924f + 461835b commit c402e7a
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 c402e7a

Please sign in to comment.