Files
Twig/tests/Fixtures/macros/duplicate_argument.test
T

9 lines
231 B
Plaintext

--TEST--
macro with a duplicated argument name
--TEMPLATE--
{% macro test(a, b, a) %}{% endmacro %}
--DATA--
return []
--EXCEPTION--
Twig\Error\SyntaxError: Argument "a" is defined twice for macro "test" in "index.twig" at line 2.