Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Nov 8, 2023
1 parent 8267281 commit 84a404e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrayToXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function addNode(DOMElement $element, string $key, mixed $value): void
protected function addNodeTypeAttribute(DOMElement $element, mixed $value): void
{
if (is_null($value)) {
if (!$this->rootNode->hasAttribute('xmlns:xsi')) {
if (! $this->rootNode->hasAttribute('xmlns:xsi')) {
$this->rootNode->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
}

Expand Down

0 comments on commit 84a404e

Please # to comment.