Skip to content

Commit 071bd39

Browse files
committed
[ci-review] Rector Rectify
1 parent ab49273 commit 071bd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/Renaming/Rector/MethodCall/RenameMethodRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function shouldSkipRename(
198198
return true;
199199
}
200200

201-
if ($classReflection === null && $classOrInterface instanceof Trait_) {
201+
if (!$classReflection instanceof ClassReflection && $classOrInterface instanceof Trait_) {
202202
return $this->hasClassNewClassMethod($classOrInterface, $methodCallRename);
203203
}
204204

0 commit comments

Comments
 (0)