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

14 lines
528 B
Plaintext

--TEST--
+/- will have a higher precedence over ~ in Twig 4.0
--DEPRECATION--
Since twig/twig 3.15: As the "~" infix operator will change its precedence in the next major version, add explicit parentheses to avoid behavior change in "index.twig" at line 2.
Since twig/twig 3.15: As the "~" infix operator will change its precedence in the next major version, add explicit parentheses to avoid behavior change in "index.twig" at line 3.
--TEMPLATE--
{{ '42' ~ 1 + 41 }}
{{ '42' ~ 43 - 1 }}
--DATA--
return []
--EXPECT--
462
4242