From 637ce071c56e6669063cc56fdb20de4b843c7555 Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Thu, 12 Sep 2024 14:34:28 +0200 Subject: [PATCH] Remove PHPStan ignore line and properly check things --- Config/XmlConfig/Converter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Config/XmlConfig/Converter.php b/Config/XmlConfig/Converter.php index 1287cba4..3bf8bcd2 100644 --- a/Config/XmlConfig/Converter.php +++ b/Config/XmlConfig/Converter.php @@ -57,8 +57,7 @@ private function toArray(DOMNode $node): array { $result = []; foreach ($node->childNodes as $childNode) { - /** @phpstan-ignore-next-line */ - if (empty($childNode)) { + if (false === $childNode instanceof DOMNode) { continue; }