Skip to content

Commit e4f44c0

Browse files
committed
fix test
1 parent e08cff9 commit e4f44c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rules/Php80/NodeAnalyzer/PromotedPropertyCandidateResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ private function matchPropertyPromotionCandidate(
133133
}
134134

135135
if ($property->type instanceof Node
136+
&& $matchedParam->type instanceof Node
136137
&& ! $matchedParam->default instanceof Expr
137138
&& ! $this->nodeComparator->areNodesEqual($matchedParam->type, $property->type)) {
138139
continue;

0 commit comments

Comments
 (0)