Skip to content

Commit 681bcf1

Browse files
authored
Merge pull request #15 from taylorvance/patch-1
Use explicit nullable type for PHP 8.4
2 parents bc3e585 + d358822 commit 681bcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MbWrapper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private function iconvStrlen(string $str, string $charset) : int
342342
return $ret;
343343
}
344344

345-
private function iconvSubstr(string $str, string $charset, int $start, int $length = null) : string
345+
private function iconvSubstr(string $str, string $charset, int $start, ?int $length = null) : string
346346
{
347347
$ret = @\iconv_substr($str, $start, $length, $charset . '//TRANSLIT//IGNORE');
348348
if ($ret === false) {

0 commit comments

Comments
 (0)