mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-05 02:25:02 +00:00
14 lines
528 B
Plaintext
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
|