mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
10a7bc13fb6bc48ec7111f0ced6c082f93e20418
matches twig comparison (la5942)
This PR was merged into the 3.x branch.
Discussion
----------
Restores the leniency of the `matches` twig comparison
Restores the leniency of the `matches` twig comparison, allowing null subject to result in a non-match.
Resolves BC break introduced in PR https://github.com/twigphp/Twig/pull/3687 ref in https://github.com/twigphp/Twig/issues/3801#issuecomment-1413345131
As per pattern in https://github.com/twigphp/Twig/pull/3617
Commits
-------
f1366689 Restores the leniency of the `matches` twig comparison, allowing null subject to result in a non-match.
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://blackfire.io/docs/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%