We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b32117e + 11b94a1 commit f712705Copy full SHA for f712705
1 file changed
src/LevenshteinDiffCalculator.php
@@ -46,7 +46,7 @@ private function split($s): array
46
if (is_array($s)) {
47
return $s;
48
} else {
49
- 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);
50
}
51
52
0 commit comments