From 937132cac5b2b17df41f508e268ecfc8f027a289 Mon Sep 17 00:00:00 2001 From: "C. Jeremiah Schneider" Date: Wed, 9 Nov 2022 10:25:29 +0100 Subject: [PATCH] a null in the 2nd parameter in `DOMDocument::createElement` is now deprecated --- src/Translator/PackageToBuiltinTranslator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translator/PackageToBuiltinTranslator.php b/src/Translator/PackageToBuiltinTranslator.php index 9baf145..0fae964 100644 --- a/src/Translator/PackageToBuiltinTranslator.php +++ b/src/Translator/PackageToBuiltinTranslator.php @@ -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) ?? ''); } /**