diff --git a/composer.json b/composer.json index dccb9dd..031276d 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ }, "require": { "php": "^7.2 || ^8.0", - "twig/twig": "^1.42.3|^2.0|^3.0" + "twig/twig": "^1.42.3 || ^2.0 || ^3.0" }, "require-dev": { "phpmyadmin/coding-standard": "^3.0.0", diff --git a/src/Node/TransNode.php b/src/Node/TransNode.php index 07f67ef..e3c0731 100644 --- a/src/Node/TransNode.php +++ b/src/Node/TransNode.php @@ -102,13 +102,12 @@ public function __construct( } /** @phpstan-ignore-next-line */ - if (Environment::VERSION_ID >= 31300 || Environment::VERSION_ID >= 301200) { + if (Environment::MAJOR_VERSION >= 3 && Environment::MINOR_VERSION >= 12) { parent::__construct($nodes, [], $lineno); return; } - /** @phpstan-ignore-next-line */ parent::__construct($nodes, [], $lineno, $tag); }