This PR was merged into the 3.x branch.
Discussion
----------
Add support for argument unpacking
Closes#3291
Commits
-------
112de8dcfa Add support for argument unpacking
This PR was merged into the 3.x branch.
Discussion
----------
Add JSON support for the file extension escaping strategy
Closes#3657
Commits
-------
c616783674 Add JSON support for the file extension escaping strategy
This PR was merged into the 3.x branch.
Discussion
----------
Simplify parser calls when possible
Commits
-------
3f07d2c034 Simplify parser calls when possible
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate the sandbox tag
Closes#3168
Commits
-------
9369a48c53 Deprecate the sandbox tag
This PR was merged into the 3.x branch.
Discussion
----------
Clarify docs on registerUndefinedTokenParserCallback()
Closes#3762
Commits
-------
d1b05519af Clarify docs on registerUndefinedTokenParserCallback()
This PR was merged into the 3.x branch.
Discussion
----------
Improve the way one can deprecate a Twig callable
Commits
-------
34ae0311d9 Improve the way one can deprecate a Twig callable
This PR was merged into the 3.x branch.
Discussion
----------
fix the version mergeGlobals() is deprecated since
Commits
-------
f72c93db fix the version mergeGlobals() is deprecated since
This PR was merged into the 3.x branch.
Discussion
----------
Add the possibility to reset globals
Closes#4007
Commits
-------
ef58791f Add the possibility to reset globals
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate Environment::mergeGlobals()
Commits
-------
b86575cf Deprecate Environment::mergeGlobals()
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix wrong format of `Environment::VERSION_ID` constant
It seems that format of `Environment::VERSION_ID` constant was (erroneously?) changed with Twig 3.10.0.
Commits
-------
a219d9e7 Fix wrong format of `Environment::VERSION_ID` constant
This PR was merged into the 3.x branch.
Discussion
----------
Fix isset in ForLoopNode
Even though the code works perfectly fine, PHPStan doesn't understand it.
> Offset 'revindex0' does not exist on array{parent: array{index0: int<1, max>, index: int<2, max>, first: false, revindex0?: int, revindex?: int, length: int<0, max>, last?: bool}.
> Offset 'revindex' does not exist on array{parent: array{index0: int<1, max>, index: int<2, max>, first: false, revindex0: int, revindex?: int, length: int<0, max>, last?: bool}.
Since we want to work with `revindex` and `revindex0`, we can better check for their existence, instead of `length`.
/cc `@stof` `@fabpot`
Commits
-------
2b887e64 Fix isset in ForLoopNode
Even though the code works perfectly fine, PHPStan doesn't understand it.
Since we want to work with `revindex` and `revindex0`, we can better check for their
existence, instead of `length`.
This PR was merged into the 3.x branch.
Discussion
----------
Fix iterable return type
Currently, the PHPDoc states that a string should be returned, but that's not correct.
It can be anything that is echo-able.
That means any scalar, Stringable and even null.
/cc `@stof` `@fabpot`
Commits
-------
4cd8955f Fix iterable return type