We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae7e9e commit 847fed8Copy full SHA for 847fed8
src/Util/StringUtil.php
@@ -44,7 +44,7 @@ public static function stripAnsiEscapeSequence(string $str) : string
44
return (string) preg_replace('/\x1b[^m]*m/', '', $str);
45
}
46
47
- public static function length(string $str, bool $ignoreAnsiEscapeSequence = true) : string
+ public static function length(string $str, bool $ignoreAnsiEscapeSequence = true) : int
48
{
49
return mb_strlen($ignoreAnsiEscapeSequence ? self::stripAnsiEscapeSequence($str) : $str);
50
0 commit comments