Skip to content

Commit 7951767

Browse files
duncan3dcsebastianbergmann
authored andcommitted
Use saveXml() instead of save()
1 parent 96bb791 commit 7951767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Report/Xml/Facade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private function saveDocument(\DOMDocument $document, string $name): void
277277
$document->preserveWhiteSpace = false;
278278
$this->initTargetDirectory(\dirname($filename));
279279

280-
$document->save($filename);
280+
\file_put_contents($filename, $document->saveXML());
281281
}
282282

283283
private function createDirectory(string $directory): bool

0 commit comments

Comments
 (0)