There was an error while loading. Please reload this page.
1 parent 4a5aa67 commit 7dcfc67Copy full SHA for 7dcfc67
src/ArrayToXml.php
@@ -90,11 +90,11 @@ public static function convert(
90
return $converter->toXml();
91
}
92
93
- public function toXml(): string
+ public function toXml($options = 0): string
94
{
95
return $this->addXmlDeclaration
96
- ? $this->document->saveXML()
97
- : $this->document->saveXML($this->document->documentElement);
+ ? $this->document->saveXML(options: $options)
+ : $this->document->saveXML($this->document->documentElement, $options);
98
99
100
public function toDom(): DOMDocument
0 commit comments