This PR was merged into the 3.x branch.
Discussion
----------
Add the possibility to deprecate attributes and nodes on Node
Commits
-------
18894cf9 Add the possibility to deprecate attributes and nodes on Node
This PR was merged into the 3.x branch.
Discussion
----------
Add support for package/version on deprecations
Commits
-------
0ce79df5 Use trigger_deprecation() instead of trigger_error() for deprecations
This PR was merged into the 3.x branch.
Discussion
----------
Move static attributes for Function|Filter|TestExpression to the constructor
Commits
-------
e8141bbd Move static attributes for Function|Filter|TestExpression to the constructor
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Constant expr as final
Closes#4119
Commits
-------
230e31d3 Add a recipe about how to mark a node as safe
693693ba Mark ConstantExpression as `@final`
* 3.x:
Introduce ChainCache and ReadOnlyFilesystemCache
Add a note about how macros can override existing functions
Fix dumping callables on Node::__toString()
This PR was merged into the 3.x branch.
Discussion
----------
Introduce ChainCache and ReadOnlyFilesystemCache
Following the feedback in symfony/symfony#54384, I’m proposing the two new Cache implementations in Twig directly.
Commits
-------
0dbe1d9f Introduce ChainCache and ReadOnlyFilesystemCache
This PR was merged into the 3.x branch.
Discussion
----------
Add a note about how macros can override existing functions
Commits
-------
cea17143 Add a note about how macros can override existing functions
This PR was merged into the 3.x branch.
Discussion
----------
Fix dumping callables on Node::__toString()
Closes#3694
Commits
-------
fc644721 Fix dumping callables on Node::__toString()
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Add new "find" filter
This filter returns the first _value_ matching the given arrow function or null
Attempt to solve #3962
(open to any feedback)
Commits
-------
4e262511 Add new "find" filter
This PR was merged into the 3.x branch.
Discussion
----------
Remove the templateClassPrefix property on Environment
Commits
-------
215f9880 Remove the templateClassPrefix property on Environment
This PR was merged into the 4.x branch.
Discussion
----------
Fix usage of loop in a for else clause
Commits
-------
5649de8a Fix usage of loop in a for else clause
This PR was merged into the 3.x branch.
Discussion
----------
[Tests] Fix EscaperRuntime namespace
From `Twig\Tests` to `Twig\Tests\Runtime`
Commits
-------
df4e66f4 Fix EscaperRuntime namespace