This PR was merged into the 1.x branch.
Discussion
----------
Allow Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
That will allow to type hint properly in Twig 3.0.
Commits
-------
5138cfd2 allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
This PR was merged into the 1.x branch.
Discussion
----------
Fix Parser contract for some implementations
Commits
-------
fe6df56e fixed Parser contract for some implementations
This PR was merged into the 1.x branch.
Discussion
----------
Tweak macro docs
closes#2344
Error message were improved a while ago, and this PR makes the documentation clearer about the expectations.
Commits
-------
7446a6d8 tweaked macro docs
This PR was merged into the 1.x branch.
Discussion
----------
Fix in test to support Twig_Markup instances
closes#1512 (extracted from #1768)
Commits
-------
8f00576e fixed in test to support Twig_Markup instances
This PR was merged into the 1.x branch.
Discussion
----------
Fix import macros from a template string
closes#2946
Commits
-------
f0c58854 fixed import macros from a template string
This PR was merged into the 1.x branch.
Discussion
----------
Add a note about escaping
closes#2623, closes#2661
Commits
-------
a83f7e85 added a note about escaping
This PR was merged into the 1.x branch.
Discussion
----------
Fix Lexer when using custom options containing the # char
closes#2948
Commits
-------
7b5851fe fixed Lexer when using custom options containing the # char
This PR was merged into the 1.x branch.
Discussion
----------
Fix compat with NodeInterface
/cc @stof
Commits
-------
701d8af6 fixed compat with NodeInterface
This PR was squashed before being merged into the 1.x branch (closes#2935).
Discussion
----------
Add missing hints in some runtime exceptions
Commits
-------
094df799 added more tests
d4db9153 added missing hints in some runtime exceptions
This PR was merged into the 1.x branch.
Discussion
----------
Make escaping on ternary expressions more fine-grained
closes#2146closes#449closes#539closes#1174closes#1320closes#1739closes#1333
Commits
-------
dfa94113 made escaping on ternary expressions more fine-grained
This PR was merged into the 1.x branch.
Discussion
----------
Fix the "with" behavior to always include the globals
closes#2377
Commits
-------
5db54551 fixed the "with" behavior to always include the globals
This PR was merged into the 1.x branch.
Discussion
----------
Tweak twig_to_array
I've change `twig_to_array()` to **not** cast to an array. That should not be a problem as we almost always call `twig_test_iterable()` before calling `twig_to_array()` and for the cases where it was not done, the PHP code would not work anyway.
follow-up to #2901 and #2909, /cc @thewilkybarkid
Commits
-------
8dd8d0dc tweaked twig_to_array