Skip to content

Commit c402e7a

Browse files
Merge pull request #15 from MauricioFauth/twig-3.13
Fix deprecation introduced by Twig 3.12
2 parents 469924f + 461835b commit c402e7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Node/TransNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,13 @@ public function __construct(
102102
}
103103

104104
/** @phpstan-ignore-next-line */
105-
if (Environment::VERSION_ID >= 301200) {
105+
if (Environment::VERSION_ID >= 31300 || Environment::VERSION_ID >= 301200) {
106106
parent::__construct($nodes, [], $lineno);
107107

108108
return;
109109
}
110110

111+
/** @phpstan-ignore-next-line */
111112
parent::__construct($nodes, [], $lineno, $tag);
112113
}
113114

0 commit comments

Comments
 (0)