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.
2 parents e99001f + 5fbf370 commit d4e4e03Copy full SHA for d4e4e03
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