diff --git a/src/ParentNode.php b/src/ParentNode.php index ac48d5e0..2325c311 100644 --- a/src/ParentNode.php +++ b/src/ParentNode.php @@ -67,6 +67,7 @@ public function append(...$nodes):void { foreach($nodes as $node) { // And without this clumsy if/else, PHP 8.3 throws "double free or corruption (!prev)" if(is_string($node)) { + /** @phpstan-ignore-next-line libxml's DOMNode does not define append() */ parent::append($node); } else {