-
-
Notifications
You must be signed in to change notification settings - Fork 361
[TwigComponent] Fix loadTemplate
deprecation for Twig >= 3.21
#2713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Are failing checks for LiveComponent https://github.com/symfony/ux/actions/runs/14850493570/job/41693042531?pr=2713 are related to your changes? |
They are, but because they are hardcoded values.. that is dependending on internal code in TwigComponent. Let's try to fix this later this week and we will merge this MR then. |
->string($this->getAttribute('embedded_index')) | ||
->raw(')'); | ||
} else { | ||
// @deprecated since Twig 3.20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either the comment should say deprecated since Twig 3.21
(or `compat for Twig <= 3.20 instead), or the version_id check is using the wrong version.
ba75bd4
to
0839eea
Compare
I wasn't able to locally reproduce the errors from CI https://github.com/symfony/ux/actions/runs/15055025384/job/42318841525?pr=2713
I've changed the condition to |
c912fc2
to
52fb47c
Compare
Let's not force-push / squash on previous commits when working on same PR, because that's hard to review then 😅 |
52fb47c
to
3ed77b2
Compare
3ed77b2
to
3df2c96
Compare
Thanks Simon. |
Fix #2710
cf twigphp/Twig#4583
Poke @ruudk