mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 12:42:05 +01:00
fix variable override
This commit is contained in:
parent
1eb125fa72
commit
98281b8b8e
@ -32,13 +32,13 @@ final class ClassReflectionTypesResolver
|
||||
$types = array_merge($types, $classReflection->getParentClassesNames());
|
||||
|
||||
// interfaces
|
||||
foreach ($classReflection->getInterfaces() as $classReflection) {
|
||||
$types[] = $classReflection->getName();
|
||||
foreach ($classReflection->getInterfaces() as $interfaceReflection) {
|
||||
$types[] = $interfaceReflection->getName();
|
||||
}
|
||||
|
||||
// traits
|
||||
foreach ($classReflection->getTraits() as $classReflection) {
|
||||
$types[] = $classReflection->getName();
|
||||
foreach ($classReflection->getTraits() as $traitReflection) {
|
||||
$types[] = $traitReflection->getName();
|
||||
}
|
||||
|
||||
// to cover traits of parent classes
|
||||
|
Loading…
x
Reference in New Issue
Block a user