Specifying enum default value as 0 if it contains no items
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
ed07ceb3f2
commit
dd3773b821
|
@ -258,7 +258,7 @@ class {{o.name}}
|
|||
|
||||
{{ _self.enum_values(o) }}
|
||||
|
||||
const DEFAULT_VALUE = {{o.values | first}};
|
||||
const DEFAULT_VALUE = {{o.values|length > 0 ? o.values | first : 0}};
|
||||
|
||||
function getClassId()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue