This PR was merged into the 3.x branch.
Discussion
----------
Remove magic handling of the raw filter
Commits
-------
84b1b3e0 Remove magic handling of the raw filter
This PR was merged into the 3.x branch.
Discussion
----------
Fix optimizer mode validation in OptimizerNodeVisitor
Commits
-------
0e6d717f Fix optimizer mode validation in OptimizerNodeVisitor
This PR was merged into the 3.x branch.
Discussion
----------
Add support for yielding from a generator in PrintNode
Commits
-------
27f6171f Add support for yielding from a generator in PrintNode
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate NameExpression internal methods
Deprecate two methods from `Twig\Node\Expression\NameExpression`:
* `isSimple()`: did not find any usage in Twig (or even Symfony) repositories
* `isSpecial()`: inlined for better performance ($name is available in the method)
Commits
-------
3531f959 Deprecate NameExpression internal methods
This PR was merged into the 3.x branch.
Discussion
----------
Replace template loader mocks by ArrayLoader
Commits
-------
e4e95f5b Replace template loader mocks by ArrayLoader
Deprecate two methods from NameExpression:
* isSimple(): did not find any usage in Twig (or even Symfony) repositories
* isSpecial(): inlined for better performance ($name is available in the method)
This PR was merged into the 3.x branch.
Discussion
----------
Add support for first class callables
Commits
-------
d2eab12e Add support for first class callables
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Extract ReflectionCallable to make it reusable
Commits
-------
bb967b3d Make compatible with PHP<8
093f51a8 Extract ReflectionCallable to make it reusable
This PR was merged into the 3.x branch.
Discussion
----------
Make a small optimization
The optimization itself is not significant, but this is the only case where we're not using the array of extensions in the code base. So, let's make things consistent here.
Commits
-------
6f12d008 Make a small optimization
This PR was merged into the 3.x branch.
Discussion
----------
[Doc] Fix `do` tag label in link
Commits
-------
10deb732 [Doc] Fix `do` tag label in link
This PR was merged into the 3.x branch.
Discussion
----------
fix the set of installed packages for TwigExtraBundle on PHP 8.0
Prevents symfony/translation-contracts 3 to be installed together with symfony/string 5.4.0-RC1 (see https://github.com/twigphp/Twig/actions/runs/9804849131/job/27073398023#step:8:117). Stable releases of the String component don't suffer from this incompatibility because of symfony/symfony#44246.
Commits
-------
c79c7e7a fix the set of installed packages for TwigExtraBundle on PHP 8.0
This PR was merged into the 3.x branch.
Discussion
----------
fix condition for running use_yield test with extra packages
Commits
-------
07967dea fix condition for running use_yield test with extra packages
This PR was merged into the 3.x branch.
Discussion
----------
[templates] add shuffle filter
New feature :
The filter displays the values in an array at random.
I'm open of any feedback.
Commits
-------
2dacaadd Tweak code, tests, and docs for shuffle
17430ae5 Add shuffle filter