This PR was merged into the 3.x branch.
Discussion
----------
Add the new PHP 8.0 IntlDateFormatter::RELATIVE_* constants for date formatting.
Since PHP 8.0, IntlDateFormatter get new constants to format relative dates. This PR add those constants.
Commits
-------
5776f760 Add the new PHP 8.0 IntlDateFormatter::RELATIVE_* constants for date formatting.
This PR was submitted for the 3.x branch but it was squashed and merged into the 2.x branch instead.
Discussion
----------
Minor: Fixing language
Commits
-------
f52b45d2 Minor: Fixing language
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