This PR was squashed before being merged into the 3.x branch.
Discussion
----------
pass the current key to reduce filter's callback
See #3802 for context.
Commits
-------
4f2f3f81 pass the current key to reduce filter's callback
This PR was merged into the 3.x branch.
Discussion
----------
Fix error messages in sandboxed mode for has some and has every
This has been forgotten when changing the PR to implement operators rather than filters.
Commits
-------
44c46712 Fix error messages in sandboxed mode for has some and has every
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix CHANGELOG
The title of #3670 is misleading, as the implementation changed from being a filter to an operator.
Also fixed some typos.
Commits
-------
dc693725 Fix CHANGELOG
This PR was merged into the 3.x branch.
Discussion
----------
Add "has some" and "has every" expressions documentation
Add documentation for https://github.com/twigphp/Twig/pull/3670.
Commits
-------
459ed67e Add "has some" and "has every" expressions
This PR was merged into the 3.x branch.
Discussion
----------
Add function twig *_name for intl
Hi,
I add `language_names`, `script_names`, `country_names`, `locale_names`, `currency_names`, `timezone_names`.
It allows us to have a list but on the Twig side and to use them in filters for example.
Commits
-------
6f9c7c02 Fix tests
b376bdd0 Add function twig *_name for intl list
This PR was merged into the 3.x branch.
Discussion
----------
throwing syntax error when the matches regexp is not valid
During the symfony live, Fabien talk about a PR he did on the Expression Language component (https://github.com/symfony/symfony/pull/45875/files). The goal was to throw a more readable error when using the matchs operator. This think need to be fix in twig to. So as promises, here is my PR !
This is my first contrib to symfony so any advice is welcome ! 😁
Commits
-------
a82e94d9 Add some tests
61672c43 throwing syntaxt error when the matches regexp is not valid
This PR was merged into the 2.x branch.
Discussion
----------
do not clean up whitespace text nodes inside if tags
Commits
-------
c8ec092c do not clean up whitespace text nodes inside if tags
This PR was merged into the 3.x branch.
Discussion
----------
Update .gitattributes
`.github` directory and `.editorconfig`, `.gitattributes`, `.gitignore` and `.php-cs-fixer.dist.php` are present in dist package. I added `export-ignore` attribute to them.
Commits
-------
849d6832 Update .gitattributes
This PR was merged into the 2.x branch.
Discussion
----------
Updates CoreExtension::twig_constant to check for definition first to avoid hard crash
The behaviour of PHP's constant() method has been updated after https://github.com/php/php-src/issues/9905 was accepted and fixed in PHP 8.1 (and previously changed post PHP 8.0) . This PR prevents a fatal error in the case a constant is supplied that doesn't actually exist.
Commits
-------
56b31224 Updates CoreExtension::twig_constant to check for definition first to avoid hard crash