diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index 06c6a2f19f47..51b594a64af9 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -473,11 +473,7 @@ public static function kebab($value) */ public static function length($value, $encoding = null) { - if ($encoding) { - return mb_strlen($value, $encoding); - } - - return mb_strlen($value); + return mb_strlen($value, $encoding); } /**