This PR was submitted for the 2.x branch but it was squashed and merged into the 1.x branch instead (closes#2536).
Discussion
----------
show how to use a variable as hash map key
currently the documentation does not explain how it's possible to use a variable as key in a hash map
Commits
-------
ef6c9505 show how to use a variable as hash map key
This PR was merged into the 1.x branch.
Discussion
----------
Throw exception on circular reference detection
Out-the-box this isn't common... but into Symfony framework this kind of issue can happen frequently when we're overriding a template from third-party bundle (see main issue https://github.com/symfony/symfony/issues/17557)
```twig
{# app/Resources/AcmeBlogBundle/views/Blog/index.html.twig #}
{% extends '@AcmeBlog/Blog/index.html.twig' %}
{% block title 'New Title' %}
```
This exception avoids inifite loop or maximum execution time for this case, by detecting a recursive loading when a template extends from itself, thinking to override the parent template which has the same namespace + template name.
Commits
-------
074e1fbe Throw exception on circular reference detection
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2531).
Discussion
----------
Update .travis.yml to deal with missing xdebug config
lets see if this fixes the nightly test
Commits
-------
1097685b Update .travis.yml
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#2515).
Discussion
----------
Update internals.rst
Missing an opening paren
Commits
-------
b8967bd3 Update internals.rst
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