Files
Twig/tests/Fixtures/macros/variadic_not_last.test
2026-07-30 13:53:24 +02:00

8 lines
245 B
Plaintext

--TEST--
macro variadic argument must be the last one
--TEMPLATE--
{% macro test(a, ...rest, b) %}
{% endmacro %}
--EXCEPTION--
Twig\Error\SyntaxError: The variadic argument "rest" in macro "test" must be the last one in "index.twig" at line 2.