mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-09 08:56:47 +00:00
6508e80d504be2ff93be6f7b65e57a58bf3968c8
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
…
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
Description
Languages
PHP
99.9%