- Bugfixes, still a WIP, but mostly functionnal now !

This commit is contained in:
Dave Mc Nicoll committed 2023-11-01 11:32:02 -04:00
1 parent 7e93e57515
commit 30f8d319bf
5 files changed
+29 -8

No files matched your search

+7 -1
View File
@@ -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);
}
}