Files
Twig/tests/Fixtures/operators/not_precedence.legacy.test
Fabien Potencier 8ff19090f3 Fix precedence rules
2025-02-14 08:38:53 +01:00

10 lines
333 B
Plaintext

--TEST--
*, /, //, and % will have a higher precedence over not in Twig 4.0
--DEPRECATION--
Since twig/twig 3.15: As the "not" prefix operator will change its precedence in the next major version, add explicit parentheses to avoid behavior change in "index.twig" at line 2.
--TEMPLATE--
{{ not 1 * 2 }}
--DATA--
return []
--EXPECT--