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