Specifying enum default value as 0 if it contains no items
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-09-30 20:29:13 +03:00
parent ed07ceb3f2
commit dd3773b821
1 changed files with 1 additions and 1 deletions

View File

@ -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()
{