Skip to content

Commit

Permalink
Merge pull request #113 from abashurov/master
Browse files Browse the repository at this point in the history
BUGFIX EXTREST-143 Fix incorrect line formatting
  • Loading branch information
sibprogrammer authored Mar 29, 2022
2 parents 8d45944 + 465c207 commit 6517a82
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 6517a82

Please sign in to comment.