This PR was merged into the 2.x branch.
Discussion
----------
[2.x] Allow using namespaced aliases as extension names
Commits
-------
08a88400 [2.x] Allow using namespaced aliases as extension names
This PR was merged into the 2.x branch.
Discussion
----------
[2.x] Add namespaced aliases
The 2.x-only part of #2484
Commits
-------
71265c40 [2.x] Add namespaced aliases
* 1.x:
Length filter non-mb_string on 7.x fix.
fixed code for older versions of PHP
bumped version to 1.34
Support PHPUnit 6 for testing extensions
added PHP 7.2 to the test matrix
This PR was merged into the 1.x branch.
Discussion
----------
Support PHPUnit 6 for testing extensions
When testing a Twig extension via the provided test cases [according to the documentation](https://twig.sensiolabs.org/doc/2.x/advanced.html#testing-an-extension), PHPUnit 6 is not supported.
I think we should force people who haven't upgraded to upgrade to PHPUnit 6 instead of limiting the ones who did.
Also, Twig 2.x runs only on PHP 7. People using Twig 2.x would most likely also test their code on PHP 7. Even though PHPUnit 5 supports PHP 7, I think most people who have updated PHP could update or would have already updated PHPUnit.
Commits
-------
8ebaf8e6 Support PHPUnit 6 for testing extensions
This PR was merged into the 1.x branch.
Discussion
----------
Prepare for php 7.2
* allow `|length` of `null`
* allow `|length` of objects not implementing `\Countable`
*To get no errors when running with PHP 7.2 You need to use phpunit
^6.1, otherwise the `each` function, used by phpunit, triggers errors.
You can do so by running phpunit like:
`SYMFONY_PHPUNIT_VERSION=6.1 phpnightly vendor/bin/simple-phpunit`*
Commits
-------
d2b7a01a Prepare for php 7.2
Before this change the name for the template was generated randomly based on uniqid(mt_rand()). It generated new file whenever the template was loaded as string using the `template_from_string` even the template was the same. The generated file wasn't used anymore.
Now the cache file is generated by the content of template so using the `template_from_string` is faster and doesn't pollute the cache folder with unneeded files.
* allow `|length` of `null`
* allow `|length` of objects not implementing `\Countable`
* To get no errors when running with PHP 7.2 You need to use phpunit
^6.1, otherwise the `each` function, used by phpunit, triggers errors.
You can do so by running phpunit like:
`SYMFONY_PHPUNIT_VERSION=6.1 phpnightly vendor/bin/simple-phpunit` *
* 1.x:
Wrong stdClass class name generates warning
added more is_object() safegaruds
Autoescape test addition; collision fix in Array Loader.
test if is_object before calling method_exists, fixes#2431
bumped version to 1.33.1-DEV
prepared the 1.33.0 release
This PR was merged into the 1.x branch.
Discussion
----------
Fix#2431
See title
Commits
-------
a5c2da6d test if is_object before calling method_exists, fixes#2431