- Bugfixes, still a WIP, but mostly functionnal now !
This commit is contained in:
1 parent
7e93e57515
commit
30f8d319bf
5 files changed
+29
-8
No files matched your search
@@ -45,6 +45,12 @@ class JsonStream extends Stream
|
||||
|
||||
public function decode(): mixed
|
||||
{
|
||||
return json_decode($this->getContents(), true, $this->depth, $this->decodingOptions);
|
||||
$content = $this->getContents();
|
||||
|
||||
if ($content === "") {
|
||||
return null;
|
||||
}
|
||||
|
||||
return json_decode($content, true, $this->depth, $this->decodingOptions);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user