Skip to content

Commit c991a58

Browse files
committed
- update: removes the new-line at the end of the XML string
1 parent a06689c commit c991a58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Serializer/XmlSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function serialize(mixed $data): string|null
8787
} else {
8888
$this->appendNode($document, $document, $data, $this->root, null);
8989
}
90-
return $document->saveXML();
90+
return trim($document->saveXML());
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)