mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Fix #215 where ReflectionMethod implementing class is not a parent class or parent interface
This commit is contained in:
parent
eb79cb7172
commit
1a9592fc62
@ -1279,6 +1279,11 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
|
||||
|
||||
/** @var \ReflectionMethod $reflection_method */
|
||||
foreach ($reflection_methods as $reflection_method) {
|
||||
$method_reflection_class = $reflection_method->getDeclaringClass();
|
||||
$method_class_name = $method_reflection_class->getName();
|
||||
|
||||
self::registerReflectedClass($method_class_name, $method_reflection_class, $project_checker);
|
||||
|
||||
MethodChecker::extractReflectionMethodInfo($reflection_method, $project_checker);
|
||||
|
||||
if ($reflection_method->class !== $class_name) {
|
||||
|
Loading…
Reference in New Issue
Block a user