Skip to content

Commit

Permalink
Replace array access with foreach value (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven authored Dec 30, 2024
1 parent 6fb2378 commit f1e08c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrayToXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ protected function createRootElement(string|array $rootElement): DOMElement
continue;
}

$this->addAttributes($element, $rootElement[$key]);
$this->addAttributes($element, $value);
}

return $element;
Expand Down

0 comments on commit f1e08c1

Please sign in to comment.