mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 12:52:36 +00:00
[FamilyTree] Use parent->hasNativeMethod() on ClassChildAnalyzer->resolveParentClassMethods() (#2357)
This commit is contained in:
parent
dc9189280f
commit
8efa7151e6
|
@ -92,7 +92,7 @@ final class ClassChildAnalyzer
|
||||||
$parentClassMethods = [];
|
$parentClassMethods = [];
|
||||||
$parents = array_merge($classReflection->getParents(), $classReflection->getInterfaces());
|
$parents = array_merge($classReflection->getParents(), $classReflection->getInterfaces());
|
||||||
foreach ($parents as $parent) {
|
foreach ($parents as $parent) {
|
||||||
if (! $parent->hasMethod($methodName)) {
|
if (! $parent->hasNativeMethod($methodName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user