Skip to content

Commit

Permalink
test: satisfy phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Apr 25, 2024
1 parent 8a5783b commit 4731907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ParentNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4731907

Please sign in to comment.