mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
11 lines
331 B
Plaintext
11 lines
331 B
Plaintext
--TEST--
|
|
macro rejects unknown named arguments without an explicit variadic argument
|
|
--TEMPLATE--
|
|
{% from _self import test %}
|
|
{% macro test(value) %}{% endmacro %}
|
|
{{ test(value: "foo", extra: "bar") }}
|
|
--DATA--
|
|
return []
|
|
--EXCEPTION--
|
|
Twig\Error\RuntimeError: Unknown argument "extra" for macro "test" in "index.twig" at line 4.
|