Skip to content

Commit 11b94a1

Browse files
author
Sergei Deriabin
committed
Fixed deprecated - change the third param to -1 instead of null
1 parent b32117e commit 11b94a1

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)