Skip to content

Commit 71ce09e

Browse files
authored
use mb_strlen() for symfony console patch
current progressbar in CI is no longer, mb_strlen() instead of strlen maybe needed. see https://github.com/rectorphp/rector-src/actions/runs/5916863350/job/16044602401#step:10:11
1 parent f12881c commit 71ce09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/symfony-console-helper-helper-php.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
public static function width(?string $string): int
55
{
66
$string ??= '';
7-
+ return \strlen($string);
7+
+ return \mb_strlen($string);
88

99
if (preg_match('//u', $string)) {
1010
return (new UnicodeString($string))->width(false);
1111
@@ -65,6 +66,7 @@
1212
public static function length(?string $string): int
1313
{
1414
$string ??= '';
15-
+ return \strlen($string);
15+
+ return \mb_strlen($string);
1616

1717
if (preg_match('//u', $string)) {
1818
return (new UnicodeString($string))->length();

0 commit comments

Comments
 (0)