Skip to content

Commit 066eb53

Browse files
authored
remove useless if statement in Str (#41570)
1 parent 6094c42 commit 066eb53

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Illuminate/Support/Str.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,6 @@ public static function mask($string, $character, $index, $length = null, $encodi
492492
return $string;
493493
}
494494

495-
if (is_null($length) && PHP_MAJOR_VERSION < 8) {
496-
$length = mb_strlen($string, $encoding);
497-
}
498-
499495
$segment = mb_substr($string, $index, $length, $encoding);
500496

501497
if ($segment === '') {

0 commit comments

Comments
 (0)