From beea1a7c4ae995d5bb01446ab0bea8d8fa22bcbf Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 25 Mar 2022 09:18:53 +0100 Subject: [PATCH] Add a test --- tests/Fixtures/expressions/dot_as_concatenation.test | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/Fixtures/expressions/dot_as_concatenation.test diff --git a/tests/Fixtures/expressions/dot_as_concatenation.test b/tests/Fixtures/expressions/dot_as_concatenation.test new file mode 100644 index 000000000..7aa1403b6 --- /dev/null +++ b/tests/Fixtures/expressions/dot_as_concatenation.test @@ -0,0 +1,8 @@ +--TEST-- +Twig does not support using . for concatenation +--TEMPLATE-- +{{ 'a'.'b' }} +--DATA-- +return [] +--EXCEPTION-- +Twig\Error\SyntaxError: Expected name or number, got value "b" of type string in "index.twig" at line 2.