diff --git a/src/XML/env_200305/Fault.php b/src/XML/env_200305/Fault.php index 9ab7b5f..d68a2d8 100644 --- a/src/XML/env_200305/Fault.php +++ b/src/XML/env_200305/Fault.php @@ -147,7 +147,7 @@ public function toXML(?DOMElement $parent = null): DOMElement // Dirty hack to get the namespaces in the right place. They cannot be in the env:Value element $doc = DOMDocumentFactory::create(); - $e = $doc->appendChild($doc->importNode($e, true)); + $doc->appendChild($doc->importNode($e, true)); return $doc->documentElement; }