Skip to content

Commit 277fcdf

Browse files
committed
Update preg_split() default $limit argument
1 parent 762ba8c commit 277fcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Readline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ public function strwidth($str)
938938
*/
939939
private function strsplit($str)
940940
{
941-
return preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY);
941+
return preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);
942942
}
943943

944944
/**

0 commit comments

Comments
 (0)