Skip to content

Commit 44448cb

Browse files
authored
Modify argument for deprecation (#33)
Co-authored-by: Chris Putnam <chris@webfx.com>
1 parent f2c9eb1 commit 44448cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HJSON/HJSONParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct()
3030
public function parse($source, $options = [])
3131
{
3232
$this->keepWsc = $options && isset($options['keepWsc']) && $options['keepWsc'];
33-
$this->textArray = preg_split("//u", $source, null, PREG_SPLIT_NO_EMPTY);
33+
$this->textArray = preg_split("//u", $source, -1, PREG_SPLIT_NO_EMPTY);
3434
$this->textLengthChars = count($this->textArray);
3535

3636
$data = $this->rootValue();

0 commit comments

Comments
 (0)