Simplifying codegen for fields initialization
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
c38e315e68
commit
c923ad53c5
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in New Issue