Fixed retrieving display string from enums

This commit is contained in:
Marcin Kurczewski 2014-04-21 00:17:16 +02:00
parent 1ec5161faf
commit f1bc9c18b9

View file

@ -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);
}