From f1bc9c18b9f602bc02fd6221a8ae6aff8c12263f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 21 Apr 2014 00:17:16 +0200 Subject: [PATCH] Fixed retrieving display string from enums --- src/Enum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Enum.php b/src/Enum.php index ad74989a..6987502c 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -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); }