mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-14 07:02:24 +00:00
[CodingStyle] Clean up getParents() call on MakeInheritedMethodVisibilitySameAsParentRector (#2246)
This commit is contained in:
parent
6d814fb385
commit
26cad67b1c
|
@ -86,12 +86,12 @@ CODE_SAMPLE
|
|||
return null;
|
||||
}
|
||||
|
||||
if ($classReflection->getParents() === []) {
|
||||
$parentClassReflections = $classReflection->getParents();
|
||||
|
||||
if ($parentClassReflections === []) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$parentClassReflections = $classReflection->getParents();
|
||||
|
||||
foreach ($node->getMethods() as $classMethod) {
|
||||
if ($classMethod->isMagic()) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue
Block a user