- Issue created by @pdureau
It seems macro parameters are not counted as "declared" variables (anymore? I guess it was the case before).
For example:
{% macro generate_link(label, url, modifier, display_label) %}
{% set attributes = create_attribute().addClass('fr-pagination__link', 'fr-pagination__link--' ~ modifier) %}
{% set attributes = url ? attributes.setAttribute('href', url) : attributes.setAttribute('aria-disabled', 'true').setAttribute('role', 'link') %}
{% set attributes = display_label ? attributes.addClass('fr-pagination__link--lg-label') : attributes %}
<li>
<a{{ attributes }}>{{ label }}</a>
</li>
{% endmacro %}
Raises those unexpected errors:
2 proposals
Active
1.0
Code