We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad21f0 commit 6e1159aCopy full SHA for 6e1159a
php/Job/Space/Select.php
@@ -76,12 +76,12 @@ public function run(): array
76
}
77
78
if (!json_encode($data)) {
79
- foreach ($data as $i => $tuple) {
80
- foreach ($tuple as $k => $v) {
+ foreach ($data as $i => &$tuple) {
+ array_walk_recursive($tuple, function (&$v) {
81
if (is_string($v) && !json_encode($v)) {
82
- $data[$i][$k] = '!!binary ' . base64_encode($v);
+ $v = '!!binary ' . base64_encode($v);
83
84
- }
+ });
85
86
87
0 commit comments