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
[BUG] Twig 3.10 breaks Timber #2993
Comments
Ran into this as well and downgrading twig worked as a work around for me. |
It looks like this was already fixed in Twig version 3.10.1 (see twigphp/Twig#4083 and the Changelog for 3.10.1). Can someone confirm this fixes the Fatal Error? There might still be a deprecation that we might handle. Maybe we need to register Timber’s escapers differently, so they don’t break in the future. I didn’t have the time yet to investigate further, though. |
confirmed, here with
all good reported in # flyntwp/flynt#554 |
Can also confirm that Twig 3.10.1 makes it work again. Great to see quick patching of the deprecations too! 👏 |
Expected Behavior
Timber to work with Twig 3.10 that is allowed to be installed according to the included
composer.json
.Actual behavior
Steps to reproduce behavior
Notes
Added
"twig/twig": "3.9.3",
to my composer.json to fix it for now.What version of Timber are you using?
Timber 2.1.0
What version of WordPress are you using?
WordPress 6.5
What version of PHP are you using?
PHP 8.2
How did you install Timber?
Installed or updated Timber through Composer
The text was updated successfully, but these errors were encountered: