Fabien Potencier 25cc3e418a bug #3046 Fixed: Endless loop if more than one parent without the macro exists (nea)
This PR was squashed before being merged into the 2.x branch (closes #3046).

Discussion
----------

Fixed: Endless loop if more than one parent without the macro exists

Hi @fabpot

I made a quick fix for the parent macro method call fix you did for me in #3042. Your code works in case the direct parent has the macro. But if there is a longer hierarchy and the looked for macro is in a parent template +1 it runs into an endless loop because the `->getParent()` method is always called on `$template` but never the newer `$parent`.

Best

Commits
-------

44970833 Fixed: Endless loop if more than one parent without the macro exists
2019-06-03 15:30:29 +02:00
2019-05-28 12:28:06 +02:00
2019-03-20 19:20:25 +01:00
2019-02-15 06:17:13 +01:00
2019-05-14 08:46:40 +02:00
2019-06-03 12:43:00 +02:00
2019-06-03 10:38:34 +02:00
2019-05-01 15:44:34 +02:00
2019-01-01 18:34:43 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%