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 2.x branch.
Discussion
----------
Add a check to ensure that iconv() is defined
Commits
-------
158a8530 Add a check to ensure that iconv() is defined
This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead (closes#3257).
Discussion
----------
IntlExtension > Handle MissingResourceException
When you want to get the language name of a language you can type:
```twig
{{ inputLanguage | language_name }}
```
But if `inputLanguage` is not a valid language, a `MissingResourceException` is thrown, blowing up the whole page.
Since in Twig, there is no way to catch this exception, it becomes extremely hard to work with these helpers if you have no control over the input. There is also no way to first check if the language exists before invoking the filter.
Commits
-------
2df6814c IntlExtension > Handle MissingResourceException
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 squashed before being merged into the 2.x branch (closes#3235).
Discussion
----------
Minor fixes in docs
Commits
-------
59243e8c Minor fixes in docs
This PR was merged into the 2.x branch.
Discussion
----------
lower php requirement
This PR adjusts the minimum PHP version to `7.2.5+` which is the version that is also required by Symfony 5.
Commits
-------
c3b4b8ee lower php requirement
This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead (closes#3226).
Discussion
----------
Allow Symfony 5
This fixes#3225
Commits
-------
d735a43e support Sf5