diff --git a/src/Html/Filter/WrapQuotedHtml.php b/src/Html/Filter/WrapQuotedHtml.php index 0f78760..db33928 100644 --- a/src/Html/Filter/WrapQuotedHtml.php +++ b/src/Html/Filter/WrapQuotedHtml.php @@ -102,7 +102,7 @@ private function hideQuotedHtml(string $html): string // Find out which of the quoted nodes occurs first in the DOM. if (count($nodes) > 0) { $node = $this->getShortestPath($nodes); - if ($node->parentNode === null) { + if ($node?->parentNode === null) { return $html; }