Skip to content

Commit 559986b

Browse files
author
Michael Duergner
committed
Setting default value in property initialization
1 parent 084e8eb commit 559986b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/EDI/Interpreter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Interpreter
8787
/**
8888
* @var string
8989
*/
90-
private $outputKey;
90+
private $outputKey = 'name';
9191

9292
/**
9393
* Split multiple messages and process
@@ -121,8 +121,6 @@ public function __construct(string $xmlMsg, array $xmlSeg, array $xmlSvc, array
121121
$this->comparisonFunction = static function ($segment, $elm) {
122122
return $segment[0] == $elm['id'];
123123
};
124-
125-
$this->toggleUseIdInsteadOfNameForOutput(false);
126124
}
127125

128126
public function togglePatching(bool $flag)

0 commit comments

Comments
 (0)