Skip to content

Commit 9939bd2

Browse files
Fix ParamTypeByMethodCallTypeRector (#6803)
1 parent 6b7412b commit 9939bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ private function refactorClassMethod(ClassMethod $classMethod, array $callers, S
189189
}
190190

191191
$paramTypes[] = $this->phpParserNodeMapper->mapToPHPStanType($paramType);
192-
$hasChanged = true;
193192
}
194193

195194
if ($paramTypes === []) {
@@ -201,6 +200,7 @@ private function refactorClassMethod(ClassMethod $classMethod, array $callers, S
201200

202201
if ($paramNodeType instanceof Node) {
203202
$param->type = $paramNodeType;
203+
$hasChanged = true;
204204
}
205205
}
206206

0 commit comments

Comments
 (0)