[CodingStyle] Clean up getParents() call on MakeInheritedMethodVisibilitySameAsParentRector (#2246)

This commit is contained in:
Abdul Malik Ikhsan 2022-05-07 07:12:07 +07:00 committed by GitHub
parent 6d814fb385
commit 26cad67b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;