diff --git a/tpl/macro.twig b/tpl/macro.twig index 903bacb..2028607 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -221,7 +221,7 @@ array_merge(parent::CLASS_FIELDS_PROPS(), [] {%- elseif f.type is instanceof('\\mtgBuiltinType') ~%} {%- if has_token(f, 'default') -%} - \metagen_php\val_{{f.type}}({{apply_value_filters(f.name, f.tokens, token(f, 'default')|default_value, false)}}) + {{token(f, 'default')|default_value}} {%- elseif f.type.isstring -%} '' {%- else -%}