Skip to content

[5.x]: "tag" constructor argument of the "craft\web\twig\nodes\GetAttrNode" class is deprecated #16107

@michtio

Description

@michtio

What happened?

Description

Since the upgrade to Craft 5.5 our tracking systems get flooded with deprecation warnings from Twig, more specifically:

Since twig/twig 3.12: The "tag" constructor argument of the "craft\web\twig\nodes\GetAttrNode" class is deprecated and ignored (check which TokenParser class set it to "null"), the tag is now automatically set by the Parser when needed.

Expected behavior

It would be nice if this is adjusted, or the deprecation errors could be silenced.

Craft CMS version

5.5.0.1

PHP version

8.3.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions