This PR was merged into the 1.x branch.
Discussion
----------
Fix deprecation when using Twig_Profiler_Dumper_Html
Commits
-------
aebec7d8 fixed deprecation when using Twig_Profiler_Dumper_Html
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2512).
Discussion
----------
Issue in documentation for twig number formatter
The explaination below my change is correct. Just the output is not correct
Commits
-------
54f0f7ae Create number_format.rst
This PR was merged into the 1.x branch.
Discussion
----------
Add support for runtime loaders to IntegrationTestCase
Adds the ability to provide runtime loaders in `IntegrationTestCase`. Otherwise, there's no way to test extensions that use them.
Fixes#2492
Commits
-------
ff96b34a Add support for runtime loaders to IntegrationTestCase
This PR was merged into the 1.x branch.
Discussion
----------
Move class_exists() at the bottom of files
Fixes#2503Closes#2506
Commits
-------
95e912b0 Move class_exists() at the bottom of files
This PR was merged into the 1.x branch.
Discussion
----------
Use class_exists instead of require
I think this is required for https://github.com/symfony/symfony/pull/23073 to pass. It's probably very similar to https://github.com/symfony/symfony/pull/22657.
A simple reproducer:
```php
<?php
use Twig\Node\Node;
require_once __DIR__ . '/vendor/autoload.php';
new Node();
new \Twig_Node();
```
[Without this patch](https://travis-ci.org/symfony/symfony/jobs/239712676#L2100):
```php
PHP Fatal error: Cannot declare class Twig_Node, because the name is already in use in vendor/twig/twig/lib/Twig/Node.php on line 20
```
With, everything works fine, whatever the two calls order.
Commits
-------
2c174e40 Use class_exists instead of require
This PR was merged into the 1.x branch.
Discussion
----------
Use class_exists instead of require to play nice with inlining
Should fix#2495
Commits
-------
dfe0dc2b Use class_exists instead of require to play nice with inlining
This PR was merged into the 1.x branch.
Discussion
----------
[Doc] Fixed documentation about 'Definition vs Runtime'
Commits
-------
c0b5eb9f [Doc] Fixed documentation about 'Definition vs Runtime'
This PR was merged into the 1.x branch.
Discussion
----------
[1.x] Allow using namespaced aliases as extension names
Commits
-------
c9a2f3db [1.x] Allow using namespaced aliases as extension names
This PR was squashed before being merged into the 1.x branch (closes#2484).
Discussion
----------
Add namespaced aliases
Commits
-------
5420a5e3 Add the aliases
71af32b3 Add namespaced aliases
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2473).
Discussion
----------
Update number_format.rst
Added warning when trying to format negative numbers at literal
Commits
-------
40fdb9e3 Update number_format.rst
This PR was squashed before being merged into the 1.x branch (closes#2478).
Discussion
----------
Drop support for HHVM
Commits
-------
b6a4895e fixed tests for PHP 7.2
6ff8d6f4 dropped support for HHVM
This PR was merged into the 1.x branch.
Discussion
----------
added PHP 7.2 to the test matrix
Commits
-------
0768f10b added PHP 7.2 to the test matrix
This PR was merged into the 1.x branch.
Discussion
----------
Fix code for older versions of PHP
Commits
-------
75f2231a fixed code for older versions of PHP
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