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 fe2a9bf commit 095ee0cCopy full SHA for 095ee0c
src/AbraFlexi/RO.php
@@ -1206,7 +1206,11 @@ public function rawJsonToArray($rawJson)
1206
1207
if ($decodeError === 'No error') {
1208
if (\array_key_exists($this->nameSpace, $responseDecoded)) {
1209
- $responseDecoded = $this->nativeTypes ? $this->fixResponseTypes($responseDecoded[$this->nameSpace]) : $responseDecoded[$this->nameSpace];
+ if (is_array($responseDecoded[$this->nameSpace])) {
1210
+ $responseDecoded = $this->nativeTypes ? $this->fixResponseTypes($responseDecoded[$this->nameSpace]) : $responseDecoded[$this->nameSpace];
1211
+ } else {
1212
+ $responseDecoded = $responseDecoded[$this->nameSpace];
1213
+ }
1214
}
1215
} else {
1216
if ($this->throwException === true) {
0 commit comments