Skip to content

Update twig deprecated call by it's updated version#518

Closed
allan-simon wants to merge 3 commits intophp-translation:masterfrom
allan-simon:patch-1
Closed

Update twig deprecated call by it's updated version#518
allan-simon wants to merge 3 commits intophp-translation:masterfrom
allan-simon:patch-1

Conversation

@allan-simon
Copy link
Copy Markdown

Version 3.12 of Twig deprecated the use of getNode('filter')

see https://twig.symfony.com/doc/3.x/deprecated.html#nodes

Comment thread Twig/Visitor/RemovingNodeVisitor.php Outdated
@bocharsky-bw
Copy link
Copy Markdown
Member

Thank you for this change! Could you take a look at the failed test - looks related. I suppose we could fix it with a little version bump for twig package? If so - it should be the easiest fix, otherwise we may need a legacy check and keep both ways.

@ZZromanZZ
Copy link
Copy Markdown

I believe RemovingNodeVisitor is not the only place where Twig deprecatations are. Can they be removed all at once?
image

@allan-simon
Copy link
Copy Markdown
Author

allan-simon commented Apr 15, 2025 via email

@ZZromanZZ
Copy link
Copy Markdown

My try: #519

@gimler
Copy link
Copy Markdown
Contributor

gimler commented Apr 15, 2025

we must raise min. version from twig to 3.12.0 in composer.json

@bocharsky-bw
Copy link
Copy Markdown
Member

@allan-simon Thank you for this change suggestion! It was applied in #526 along with fixed tests, I'm closign it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants