From 5970d34cd43e7302ac19d50146d82606b9086e09 Mon Sep 17 00:00:00 2001 From: Kieran Brahney Date: Thu, 4 Jul 2024 18:03:13 +0100 Subject: [PATCH] phpstan fix --- src/Html/Filter/WrapQuotedHtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }