Skip to content

Commit

Permalink
Fix GetAttrNode deprecation warning (#447)
Browse files Browse the repository at this point in the history
* Fix GetAttrNode deprecation warning

* remove usage

* bump version
  • Loading branch information
bytestream authored Sep 15, 2024
1 parent b8a5591 commit 549e0f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Node/GetAttrNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/NodeVisitor/GetAttrAdjuster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 549e0f3

Please sign in to comment.