This PR was merged into the 1.x branch.
Discussion
----------
Drop PHP 5 support
PHP 5.6 has been unsopported for 2.5 years now and bumping min version to 7.0 will ease supporting PHP 8.0.
Commits
-------
52028f91 Drop PHP 5 support
This PR was submitted for the 3.x branch but it was squashed and merged into the 1.x branch instead.
Discussion
----------
Update api.rst
formating improve
Commits
-------
abe625a1 Update api.rst
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Tweaking phpdoc above Environment
Super minor. This description is displayed in Symfony's `debug:autowiring` command. It occurred to me that the current description doesn't describe the "thing" that most people would be looking for - that it *renders* templates.
Thanks!
Commits
-------
fabbac88 Tweaking phpdoc above Environment
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Identity Equals - Best practices
all the equals are with identity equals, except these.
It's better normalize all the comparatives operations.
Commits
-------
60d5b4bc Identity Equals - Best practices
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Update default.rst
Add warning for potentially confusing behaviour and alternative solution.
Commits
-------
9ff9a4d3 Update default.rst
This PR was merged into the 1.x branch.
Discussion
----------
Fix format of the CHANGELOG
Change to be applied to 2.x and 3.x when merging up of course.
Commits
-------
85cb7fd0 Fix format of the CHANGELOG
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Update advanced.rst
Hello,
I just updated the class name 😉
Commits
-------
e030bf6e Update advanced.rst
This PR was merged into the 1.x branch.
Discussion
----------
Optimize context access on PHP 7.4
`700400` means PHP 70.4
refs https://github.com/twigphp/Twig/pull/2985
Commits
-------
e3c20d39 Fix optimize context access on PHP 7.4
This PR was merged into the 1.x branch.
Discussion
----------
Syntax error in doc
This code sample in advanced.rst is not highlighted in php because the second semicolon is missing
Commits
-------
fbfac78f Syntax error in doc
This PR was merged into the 1.x branch.
Discussion
----------
Fix versionadded in doc
I think those versionadded blocks don't show because they have a typo.
Commits
-------
6b25dccf Fix versionadded in doc
This PR was squashed before being merged into the 1.x branch (closes#3237).
Discussion
----------
Replace strtolower() with strtr() when dealing with method names
This is to improve consistency with the implementation of case-insensitivity for method names etc. in the Zend Engine: In fact, the ZE does not apply the internal `strtolower` implementation, but just maps ASCII `A-Z` to `a-z`.
This was done in https://github.com/php/php-src/commit/582514d4c7b216dbdc7a8429962cf3e5776206f0 to fix issues like https://bugs.php.net/bug.php?id=18556.
Additionally, `strtok` might give a tiny (measurable?) performance gain over `strtolower`, plus it is not locale-dependant.
Commits
-------
30feddef Replace strtolower() with strtr() when dealing with method names
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#3223).
Discussion
----------
Remove `the`
Remove the article `the` to make a correct statement.
Commits
-------
8b8cfb0f language typo
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead (closes#3215).
Discussion
----------
[Minor] Correct return type of twig_date_converter
if a `\DateTimeImmutable` is passed to `twig_date_converter` it will return a `\DateTimeImmutable`, not a `\DateTime`.
Commits
-------
e927e859 Correct return type of twig_date_converter