Skip to content

Commit

Permalink
Merge pull request #15 from taylorvance/patch-1
Browse files Browse the repository at this point in the history
Use explicit nullable type for PHP 8.4
  • Loading branch information
zbateson authored Dec 20, 2024
2 parents bc3e585 + d358822 commit 681bcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MbWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private function iconvStrlen(string $str, string $charset) : int
return $ret;
}

private function iconvSubstr(string $str, string $charset, int $start, int $length = null) : string
private function iconvSubstr(string $str, string $charset, int $start, ?int $length = null) : string
{
$ret = @\iconv_substr($str, $start, $length, $charset . '//TRANSLIT//IGNORE');
if ($ret === false) {
Expand Down

0 comments on commit 681bcf1

Please sign in to comment.