mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
8 lines
275 B
Plaintext
8 lines
275 B
Plaintext
--TEST--
|
|
macro variadic argument cannot reuse another argument name
|
|
--TEMPLATE--
|
|
{% macro test(a, ...a) %}
|
|
{% endmacro %}
|
|
--EXCEPTION--
|
|
Twig\Error\SyntaxError: The variadic argument "a" in macro "test" cannot have the same name as another argument in "index.twig" at line 2.
|