diff --git a/src/Parser.php b/src/Parser.php index 9f4db52..3e05469 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -424,6 +424,7 @@ private function loopRegexes($regexes, $str, $mode = "match", $highestPosition = { $minLength = $mode === "split" ? 1 : 0; $maxLength = strlen($str); + $match = null; foreach ($regexes as $regex) { $currentMatch = [];