{% for e in exception.toarray %} {% include '@Twig/Exception/traces.xml.twig' with { 'exception': e } only %} {% endfor %}