Skip to content

Commit

Permalink
Be paranoid
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 27, 2023
1 parent bb95c13 commit f15372e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function migrate(DOMDocument $document): void
return;
}

assert($coverage->parentNode !== null);

$coverage->parentNode->removeChild($coverage);
}
}

0 comments on commit f15372e

Please sign in to comment.