Fabien Potencier 545989ed2b bug #3344 Fix the compilation of Twig comparison operators (stof)
This PR was merged into the 3.x branch.

Discussion
----------

Fix the compilation of Twig comparison operators

The new compilation implemented in Twig 3 for PHP 7 (to match the comparison semantic of PHP 8) was missing the surrounding braces (which are part of the AsbtractBinary compilation). This caused issues when the full expression would involve other operators (like the not operator), as things would then rely on having the correct precedence in PHP (which would not be the case).

Closes #3318

Commits
-------

bf24f136 Fix the compilation of Twig comparison operators
2020-06-05 15:59:44 +02:00
2020-05-19 15:03:51 +02:00
2020-05-21 11:56:39 +02:00
2019-08-08 18:07:29 +02:00
2020-05-21 11:56:39 +02:00
2020-05-19 15:23:33 +02:00
2020-05-21 11:56:39 +02:00
2020-02-11 17:31:46 +01:00
2020-03-30 14:46:07 +02:00
2019-06-28 17:37:46 +02: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.

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
Languages
PHP 99.9%