diff --git a/composer.json b/composer.json index 9213b26..3286a08 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ ], "require": { "php": "^8.1", - "twig/twig": "~3.9", + "twig/twig": "~3.12", "illuminate/support": "^9|^10|^11", "illuminate/view": "^9|^10|^11" }, diff --git a/src/Node/GetAttrNode.php b/src/Node/GetAttrNode.php index af4990b..51b22e7 100644 --- a/src/Node/GetAttrNode.php +++ b/src/Node/GetAttrNode.php @@ -31,10 +31,10 @@ class GetAttrNode extends GetAttrExpression /** * @inheritdoc */ - public function __construct(array $nodes = [], array $attributes = [], int $lineno = 0, string $tag = null) + public function __construct(array $nodes = [], array $attributes = [], int $lineno = 0) { // Skip parent::__construct() - Node::__construct($nodes, $attributes, $lineno, $tag); + Node::__construct($nodes, $attributes, $lineno); } /** diff --git a/src/NodeVisitor/GetAttrAdjuster.php b/src/NodeVisitor/GetAttrAdjuster.php index de70520..d601e1b 100644 --- a/src/NodeVisitor/GetAttrAdjuster.php +++ b/src/NodeVisitor/GetAttrAdjuster.php @@ -45,7 +45,7 @@ public function enterNode(Node $node, Environment $env): Node 'optimizable' => $node->getAttribute('optimizable'), ]; - return new GetAttrNode($nodes, $attributes, $node->getTemplateLine(), $node->getNodeTag()); + return new GetAttrNode($nodes, $attributes, $node->getTemplateLine()); } /**