Skip to content

Commit

Permalink
Fixed #16107
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 17, 2024
1 parent 3b53b7f commit fbb05a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Release Notes for Craft CMS 4

## Unreleased

- Fixed a JavaScript error that could occur on element edit pages. ([#16055](https://github.com/craftcms/cms/issues/16055))
- Fixed a Twig deprecation error. ([#16107](https://github.com/craftcms/cms/issues/16107))

## 4.13.0 - 2024-11-12

Expand Down
5 changes: 2 additions & 3 deletions src/web/twig/nodes/GetAttrNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ class GetAttrNode extends GetAttrExpression
* @param array $nodes An array of named nodes
* @param array $attributes An array of attributes (should not be nodes)
* @param int $lineno The line number
* @param string|null $tag The tag name associated with the Node
* @noinspection PhpMissingParentConstructorInspection
*/
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/web/twig/nodevisitors/GetAttrAdjuster.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function enterNode(Node $node, Environment $env): Node
$attributes['spread'] = $node->getAttribute('spread');
}

return new GetAttrNode($nodes, $attributes, $node->getTemplateLine(), $node->getNodeTag());
return new GetAttrNode($nodes, $attributes, $node->getTemplateLine());
}

/**
Expand Down

0 comments on commit fbb05a3

Please sign in to comment.