diff --git a/src/MbWrapper.php b/src/MbWrapper.php index 34830de..31acd5a 100644 --- a/src/MbWrapper.php +++ b/src/MbWrapper.php @@ -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) {