From 8b030145c1f402d9b33249d1b8f274315b1df9a2 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Wed, 24 Jul 2024 17:16:42 +0200 Subject: [PATCH] Fix --- src/AbstractElement.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AbstractElement.php b/src/AbstractElement.php index 7e5d3c8..0dca097 100644 --- a/src/AbstractElement.php +++ b/src/AbstractElement.php @@ -232,6 +232,7 @@ public static function getChildrenOfClass(DOMElement $parent): array ) { // Normalize the DOMElement by importing it into a clean empty document $newDoc = DOMDocumentFactory::create(); + /** @var \DOMElement $node */ $node = $newDoc->appendChild($newDoc->importNode($node, true)); $ret[] = static::fromXML($node);