You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I cannot upgrade to 8.0 at this time. I'm trying to bring a legacy application up to date.
If you're choosing to stop supporting PHP 7.x then at least downgrading Twig to a lower version helps for others that may encounter this. Getting from Twig 1.x to 3.x was a lot of work.
Versions:
PHP: 7.4.33
Twig: 3.11.3
Reproducing
Result
Solution
When I downgrade to Twig 3.0.5 the code above work as expected.
The text was updated successfully, but these errors were encountered: