Skip to content

Commit 1245d7e

Browse files
authored
Merge pull request #1 from mferrara/patch-1
Fix for deprecated use of null as parameter where int is expected
2 parents 286d94c + 453a817 commit 1245d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NlpTools/Tokenizers/WhitespaceTokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public function tokenize($str)
1414
{
1515
$arr = array();
1616

17-
return preg_split(self::PATTERN,$str,null,PREG_SPLIT_NO_EMPTY);
17+
return preg_split(self::PATTERN,$str,0,PREG_SPLIT_NO_EMPTY);
1818
}
1919
}

0 commit comments

Comments
 (0)