This PR was merged into the 3.x branch.
Discussion
----------
Added return and argument type for LoaderInterface
@fabpot I have started with my preparation for the Twig Certification. Here I found some missing return and argument type at the DatabaseTwigLoader example. Hopefully I fix everything corrent. I couldn't found a CONTRIBUTING.md or anything else.
Commits
-------
5521e034 Added return and argument type for LoaderInterface
This PR was merged into the 1.x branch.
Discussion
----------
Fix a regression when not using a space before an operator
Commits
-------
841906b1 Fix a regression when not using a space before an operator
This PR was merged into the 1.x branch.
Discussion
----------
Unify code style
I noticed that the code style in `ExpressionParser` changed from v1 to v3. So this PR now fixes it, that the file in v1 looks more clean.
@fabpot this is a small addendum to #3363
Commits
-------
38cb89c2 Unify code style
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
Allow trailing commas in macros + functions + filters
I implemented support for trailing commas in
- function calls
- filter arguments
- macro parameters + arguments (so call + definition)
Lists + maps are already supported https://twigfiddle.com/6atiz3
Is something missing?
Commits
-------
ccc2dbb0 Allow trailing commas in macros + functions + filters
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
Restrict callables to closures in filters
When using filter in sandboxed mode, this PR requires the use of closure.
Commits
-------
d8259519 Restrict callables to closures in filters
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
Update html_to_markdown.rst
Integrating some findings of https://github.com/twigphp/Twig/issues/3357
Commits
-------
4b8e1891 Update html_to_markdown.rst
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
[3.x] Fix twig_compare w.r.t. whitespace trimming
Fixes#3352
Commits
-------
9d115f68 [3.x] Fix twig_compare w.r.t. whitespace trimming
This PR was merged into the 3.x branch.
Discussion
----------
Minimum version fix
I just tried this on Composer
Commits
-------
3db903e1 Minimum version fix
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix twig_compare float-string trailing whitespace + refactor
Fixes#3345
Refs #2966 (and #3186)
(feel free to discard the "Factorize" commit if you favor performance over maintainability)
Commits
-------
d6822aeb Fix twig_compare float-string trailing whitespace + refactor