Fabien Potencier 6508e80d50 bug #4575 Fix support for ignoring syntax erros in an undefined handler in guard (stof)
This PR was merged into the 3.x branch.

Discussion
----------

Fix support for ignoring syntax erros in an undefined handler in guard

This fixes the issue discussed in https://github.com/twigphp/Twig/pull/4511#issuecomment-2598774060 so that ignoring SyntaxError from undefined handlers wanting to provide a custom message actually works in the `{% guard %}` tag.

This adds an integration test covering that behavior to ensure it works.

Commits
-------

3794efe662 Fix support for ignoring syntax erros in an undefined handler in guard
2025-02-09 18:11:12 +01:00
2025-01-31 21:45:36 +01:00
2025-01-31 21:45:36 +01:00
2025-02-08 10:47:15 +01:00
2025-02-08 10:47:15 +01:00
2025-01-31 21:45:36 +01:00

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

Twig is a template language for PHP.

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

Sponsors
--------

.. raw:: html

    <a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

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

Read the `documentation`_ for more information.

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