Skip to content

Commit 8308ac5

Browse files
committed
FIX: Adds multiple values as array instead of concatenation
1 parent bb6e825 commit 8308ac5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/EDI/Analyser.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,7 @@ public function process(array $data, array $rawSegments = null): string
225225
}
226226
$r[] = ' type: '.$d_sub_desc_attr['type'];
227227

228-
if (isset($jsoncomposite[$d_sub_desc_attr['name']])) {
229-
$jsoncomposite[$d_sub_desc_attr['name']] .= $d_detail;
230-
} else {
231-
$jsoncomposite[$d_sub_desc_attr['name']] = $d_detail;
232-
}
228+
$jsoncomposite[$d_sub_desc_attr['name']][] = $d_detail;
233229

234230
if (isset($d_sub_desc_attr['maxlength'])) {
235231
$r[] = ' maxlen: '.$d_sub_desc_attr['maxlength'];

0 commit comments

Comments
 (0)