Skip to content

Commit bdb4025

Browse files
authored
Fix return $node on ReIndexNodeAttributeVisitor (#6602)
1 parent 99b6d30 commit bdb4025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPStan/NodeVisitor/ReIndexNodeAttributeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function enterNode(Node $node): ?Node
4444

4545
if ($node instanceof If_) {
4646
$node->elseifs = array_values($node->elseifs);
47-
return null;
47+
return $node;
4848
}
4949

5050
if ($node instanceof TryCatch) {

0 commit comments

Comments
 (0)