Skip to content

Commit

Permalink
a null in the 2nd parameter in DOMDocument::createElement is now de…
Browse files Browse the repository at this point in the history
…precated
  • Loading branch information
cjschneider2 committed Nov 9, 2022
1 parent 08fa93d commit 937132c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator/PackageToBuiltinTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private function createDomNode(XmlElementInterface $element): DOMNode
return $this->document->createElementNS($finder->getNamespace()->getValue(), $name, $value);
}

return $this->document->createElement($name, $this->getValueExport($element));
return $this->document->createElement($name, $this->getValueExport($element) ?? '');
}

/**
Expand Down

0 comments on commit 937132c

Please sign in to comment.