Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit a2f666b

Browse files
Fix default parameters value
1 parent f8087a1 commit a2f666b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Iterators/JsonIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class JsonIterator implements Iterator
1717
protected $cursorPosition;
1818
protected $nextCursorPosition;
1919

20-
public function __construct($jsonString, array $options = null)
20+
public function __construct($jsonString, array $options)
2121
{
2222
$this->jsonString = $jsonString;
2323

src/JsonIteratorFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
class JsonIteratorFactory
1515
{
1616

17-
public static function buildJsonIterator($json, array $options = null)
17+
public static function buildJsonIterator($json, array $options = array())
1818
{
1919
return new JsonIterator($json, $options);
2020
}
2121

22-
public static function buildJsonFileIterator($jsonFileHandle, array $options = null)
22+
public static function buildJsonFileIterator($jsonFileHandle, array $options = array())
2323
{
2424
return new JsonFileIterator($jsonFileHandle, $options);
2525
}
2626

27-
public static function buildJsonFilesIterator($jsonFileHandles, array $options = null)
27+
public static function buildJsonFilesIterator($jsonFileHandles, array $options = array())
2828
{
2929
return new JsonFilesIterator($jsonFileHandles, $options);
3030
}

0 commit comments

Comments
 (0)