Fixed retrieving display string from enums
This commit is contained in:
parent
1ec5161faf
commit
f1bc9c18b9
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class Enum
|
|||
|
||||
public static function toDisplayString($constant)
|
||||
{
|
||||
TextCaseConverter::convert(static::toString($constant),
|
||||
return TextCaseConverter::convert(static::toString($constant),
|
||||
TextCaseConverter::SNAKE_CASE,
|
||||
TextCaseConverter::BLANK_CASE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue