Skip to content

Commit f712705

Browse files
authored
Merge pull request #3 from DeryabinSergey/deprecated_fix
Fixed deprecated - change the third param to -1 instead of null
2 parents b32117e + 11b94a1 commit f712705

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LevenshteinDiffCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function split($s): array
4646
if (is_array($s)) {
4747
return $s;
4848
} else {
49-
return preg_split('/(' . $this->separatorRegex . ')/u', $s, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
49+
return preg_split('/(' . $this->separatorRegex . ')/u', $s, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
5050
}
5151
}
5252

0 commit comments

Comments
 (0)