This PR was merged into the 3.x branch.
Discussion
----------
Replace template loader mocks by ArrayLoader
Commits
-------
e4e95f5b Replace template loader mocks by ArrayLoader
This PR was merged into the 4.x branch.
Discussion
----------
Make some small internal tweaks to loops
Commits
-------
7f0f313f Make some small internal tweaks to loops
This PR was merged into the 4.x branch.
Discussion
----------
Fix support for IteratorAggregate and EmptyIterator objects in loops
Commits
-------
c93daeee Fix support for IteratorAggregate and EmptyIterator objects in loops
This PR was merged into the 4.x branch.
Discussion
----------
User first class callable syntax
Commits
-------
8b47fc31 Use first class callable syntax
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 squashed before being merged into the 4.x branch.
Discussion
----------
Add `loop.changed`, `loop.previous`, `loop.next`, and `loop.cycle` variables
Commits
-------
55b414c4 Add more precise types
65b4ea43 Add `loop.changed`, `loop.previous`, `loop.next`, and `loop.cycle` variables
This PR was squashed before being merged into the 4.x branch.
Discussion
----------
Simplify Loop code
Let's compute values as late as possible.
Commits
-------
437ad31d Move some code to LoopContext
0c2a69ce Simplify Loop code
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
* 3.x:
fix condition for running use_yield test with extra packages
fix the set of installed packages for TwigExtraBundle on PHP 8.0
simplify an iterable check
Fixed typo
Tweak code, tests, and docs for shuffle
Add shuffle filter
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