craft-twig_perversion icon indicating copy to clipboard operation
craft-twig_perversion copied to clipboard

`{% return %}` tag broken on Craft 5.4 / Twig 3.12?

Open rungta opened this issue 5 months ago • 10 comments

The following seems to be failing in Craft 5.4.1:

{% macro returnTest() %}
  Hello
  {% return [1, 2, 3] %}
{% endmacro %}

{% dd returnTest() %}

Produces Hello instead of an array.

rungta avatar Sep 05 '24 20:09 rungta