Simplifying codegen for fields initialization
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2025-02-25 17:04:26 +03:00
parent c38e315e68
commit c923ad53c5
1 changed files with 1 additions and 1 deletions

View File

@ -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 -%}