We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4988cc7 commit 0380be3Copy full SHA for 0380be3
src/XML/SerializableElementTrait.php
@@ -43,9 +43,11 @@ public function __toString(): string
43
44
if (static::getNormalization() === true) {
45
$normalized = DOMDocumentFactory::normalizeDocument($doc);
46
+ $normalized->normalizeDocument();
47
return $normalized->saveXML($normalized->firstChild);
48
}
49
50
+ $doc->normalizeDocument();
51
return $doc->saveXML($doc->firstChild);
52
53
0 commit comments