Skip to content

Commit

Permalink
BUGFIX EXTREST-143 Fix incorrect line formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Bashurov committed Mar 28, 2022
1 parent 0120437 commit 465c207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private function arrayToXml(array $array, SimpleXMLElement $xml, $parentEl = nul
$el = is_int($key) && $parentEl ? $parentEl : $key;
if (is_array($value)) {
$this->arrayToXml($value, $this->isAssocArray($value) ? $xml->addChild($el) : $xml, $el);
} elseif(!isset($xml->{$el})) {
} elseif (!isset($xml->{$el})) {
$xml->{$el} = (string) $value;
} else {
$xml->{$el}[] = (string) $value;
Expand Down

0 comments on commit 465c207

Please sign in to comment.