Skip to content

Commit 4a6e50b

Browse files
committed
Fix analyser
1 parent 71aca74 commit 4a6e50b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/EDI/Analyser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ public function process(array $data, array $rawSegments = null): string
220220
$r[] = $line;
221221

222222
$r[] = ' id: '.$codeElementId.' - '.$d_sub_desc_attr['name'];
223-
$r[] = ' '.\wordwrap($d_sub_desc_attr['desc'], 69, \PHP_EOL.' ');
223+
if (isset($d_sub_desc_attr['desc'])) {
224+
$r[] = ' '.\wordwrap($d_sub_desc_attr['desc'], 69, \PHP_EOL.' ');
225+
}
224226
$r[] = ' type: '.$d_sub_desc_attr['type'];
225227

226228
if (isset($jsoncomposite[$d_sub_desc_attr['name']])) {

0 commit comments

Comments
 (0)