Skip to content

Commit e5e7ddb

Browse files
mbeccatinicolas-grekas
authored andcommitted
Update nullable types for PHP 8.4
1 parent 9773676 commit e5e7ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mbstring.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ public static function mb_ord($s, $encoding = null)
827827
return $code;
828828
}
829829

830-
public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, string $encoding = null): string
830+
public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null): string
831831
{
832832
if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) {
833833
throw new \ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH');

0 commit comments

Comments
 (0)