Skip to content

Commit 847fed8

Browse files
committed
Fix return type
1 parent eae7e9e commit 847fed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/StringUtil.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function stripAnsiEscapeSequence(string $str) : string
4444
return (string) preg_replace('/\x1b[^m]*m/', '', $str);
4545
}
4646

47-
public static function length(string $str, bool $ignoreAnsiEscapeSequence = true) : string
47+
public static function length(string $str, bool $ignoreAnsiEscapeSequence = true) : int
4848
{
4949
return mb_strlen($ignoreAnsiEscapeSequence ? self::stripAnsiEscapeSequence($str) : $str);
5050
}

0 commit comments

Comments
 (0)