* 3.x:
Fix the null coalescing operator when the test returns null
Fix the Elvis operator when there is some space between ? and :
Bump version
Prepare the 3.17.0 release
Update CHANGELOG
This PR was merged into the 3.x branch.
Discussion
----------
Fix the null coalescing operator when the test returns null
Closes#4499
Commits
-------
4c5467f56a Fix the null coalescing operator when the test returns null
This PR was merged into the 3.x branch.
Discussion
----------
Fix the Elvis operator when there is some space between ? and :
Commits
-------
1af334be89 Fix the Elvis operator when there is some space between ? and :
This PR was squashed before being merged into the 4.x branch.
Discussion
----------
Bump Phpstan to level 4
Commits
-------
29fce6de1e Bump Phpstan to level 4
* 3.x:
fix version numbers for deprecations
Require "erusev/parsedown": "dev-master as 1.x-dev"
Support underscores in number literals
Remove deprecate usage of AssignNameExpression in For Node
Update coding standards
This PR was merged into the 3.x branch.
Discussion
----------
fix version numbers for deprecations
#4482 was merged after the release of 3.16.0
Commits
-------
f90105d0ac fix version numbers for deprecations
This PR was merged into the 4.x branch.
Discussion
----------
add back minimum stability
enforce stable releases of dev tools instead
Commits
-------
351129cffa add back minimum stability
This PR was merged into the 3.x branch.
Discussion
----------
Require "erusev/parsedown": "dev-master as 1.x-dev"
Should fix the CI until https://github.com/erusev/parsedown/pull/891 is merged.
Commits
-------
5287da57cc Require "erusev/parsedown": "dev-master as 1.x-dev"
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Support underscores in number literals
```twig
{{ 1000 == 1_000 ? 'yes' : 'no' }}
# now: syntax error
# this PR: "yes"
```
> As of PHP 7.4.0, integer literals may contain underscores (_) between digits, for better readability of literals. These underscores are removed by PHP's scanner.
https://www.php.net/manual/en/language.types.integer.php
This PR replicates that behaviour, using the regexp to match the literals and then remove the "_".
I'm targeting **Twig4** but maybe 3.x would be ok?
I cannot think of a real case that
- does not trigger an error currently
- would work differently after this PR
Commits
-------
da4d96692a Support underscores in number literals
This PR was merged into the 3.x branch.
Discussion
----------
Remove deprecate usage of AssignNameExpression in For Node
Commits
-------
616cd06914 Remove deprecate usage of AssignNameExpression in For Node
This PR was squashed before being merged into the 4.x branch.
Discussion
----------
[Twig 4] Add PHPUnit as dev dependency
This makes it easier to run the tests locally.
I understand we didn't do this previously (Twig 3) because of `symfony/simple-phpunit`. But that is now removed in Twig 4, so maybe we can do this as well?
Commits
-------
c352a8d283 [Twig 4] Add PHPUnit as dev dependency
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Update coding standards
Commits
-------
07a4ed17d2 Update coding standards
This PR was merged into the 3.x branch.
Discussion
----------
Use [] instead of array() to represent a constant value in compiled code
Commits
-------
49f384f107 Use [] instead of array() to represent a constant value in compiled code
This PR was merged into the 3.x branch.
Discussion
----------
Enforce AbstractBinary for all binary operators
Commits
-------
4f8ba93600 Enforce AbstractBinary for all binary operators