We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19f9db0 + 31f8500 commit 7d7cf79Copy full SHA for 7d7cf79
app/Listener/QueryResultTryToJsonListener.php
@@ -35,7 +35,11 @@ public function process(object $event)
35
return !isset($item['native_type']) && in_array('blob', $item['flags']);
36
}, ARRAY_FILTER_USE_BOTH) as $item) {
37
for ($i = 0; $i < count($event->result); $i++) {
38
- $event->result[$i][$item['name']] = json_decode($event->result[$i][$item['name']], true);
+ if (!is_string($event->result[$i][$item['name']])) continue;
39
+ $jsonData = json_decode($event->result[$i][$item['name']], true);
40
+ if (is_array($jsonData)) {
41
+ $event->result[$i][$item['name']] = $jsonData;
42
+ }
43
}
44
45
0 commit comments