diff --git a/src/Utils.php b/src/Utils.php index 55d4e03..8559ff4 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -29,7 +29,7 @@ abstract class Utils * * @param string $pattern The pattern to search for, as a string. * @param string $subject The input string. - * @param int|null $limit If specified, then only substrings up to limit are returned with the + * @param int $limit If specified, then only substrings up to limit are returned with the * rest of the string being placed in the last substring. A limit of -1 or 0 means "no limit". * @param int $flags flags can be any combination of the following flags (combined with the | bitwise operator): * *PREG_SPLIT_NO_EMPTY* @@ -46,7 +46,7 @@ abstract class Utils * * @throws PcreException */ - public static function pregSplit(string $pattern, string $subject, ?int $limit = -1, int $flags = 0): array + public static function pregSplit(string $pattern, string $subject, int $limit = -1, int $flags = 0) : array { $parts = php_preg_split($pattern, $subject, $limit, $flags); if ($parts === false) {