Skip to content

Commit

Permalink
Remove PHPStan ignore line and properly check things
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Sep 12, 2024
1 parent 7e96475 commit 637ce07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Config/XmlConfig/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 637ce07

Please sign in to comment.