We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99001f commit 1d70bd0Copy full SHA for 1d70bd0
src/Helpers/JSON.php
@@ -43,7 +43,7 @@ public function decode(?string $encoded): array
43
44
$decoded = json_decode($encoded, true) ?: [];
45
46
- return $this->doesntError() ? $decoded : $this->parseErrors($encoded);
+ return $this->doesntError() ? (array) $decoded : $this->parseErrors($encoded);
47
}
48
49
protected function doesntError(): bool
0 commit comments