Skip to content

Commit 765a97d

Browse files
author
Andrey Helldar
authored
Fixed error in determining the number of characters in different encodings
1 parent bd6b615 commit 765a97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function raw(array $array, int $pad = 1): string
5050
protected function pad(string $value, int $pad = 1, $type = STR_PAD_LEFT): string
5151
{
5252
$pad += $type === STR_PAD_LEFT
53-
? mb_strlen($value)
53+
? strlen($value)
5454
: 2;
5555

5656
return str_pad($value, $pad, ' ', $type);

0 commit comments

Comments
 (0)