Skip to content

Commit

Permalink
Merge pull request #3 from DeryabinSergey/deprecated_fix
Browse files Browse the repository at this point in the history
Fixed deprecated - change the third param to -1 instead of null
  • Loading branch information
yusitnikov authored Nov 29, 2024
2 parents b32117e + 11b94a1 commit f712705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LevenshteinDiffCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function split($s): array
if (is_array($s)) {
return $s;
} else {
return preg_split('/(' . $this->separatorRegex . ')/u', $s, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
return preg_split('/(' . $this->separatorRegex . ')/u', $s, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
}
}

Expand Down

0 comments on commit f712705

Please sign in to comment.