What happened?
Description
Twig macro variables don't work properly when starting with an underscore. This Twig issue is only present in Twig v 3.15.0 and is fixed in the next version 3.16.0
Steps to reproduce
- Create a macro with a variable that starts with an underscore:
{% macro foo(_bar) %}
{{ _bar|default('NOPE') }}
{% endmacro %}
- Call macro with set variable:
{{ _self.foo('It works') }}
Expected behavior
Actual behavior
Craft CMS version
4, 5
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions