We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5503902 + 50acd51 commit 0497e89Copy full SHA for 0497e89
.gitignore
@@ -19,3 +19,5 @@ vendor/
19
20
composer.lock
21
package-lock.json
22
+
23
+playground.php
src/Services/ConvertToXml.php
@@ -19,11 +19,14 @@
class ConvertToXml
{
+ protected DOMDocument $document;
24
public function __construct(
25
#[Config('feeds.pretty')]
26
bool $pretty,
- protected DOMDocument $document
27
) {
28
+ $this->document = new DOMDocument('1.0', 'UTF-8');
29
30
$this->document->formatOutput = $pretty;
31
$this->document->preserveWhiteSpace = ! $pretty;
32
}
0 commit comments