fix variable override

This commit is contained in:
Tomas Votruba 2018-08-09 12:05:05 +02:00
parent 1eb125fa72
commit 98281b8b8e

View File

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