1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Make sure that traits are listed as analyzable so issues can be shown

This commit is contained in:
Matt Brown 2017-06-21 16:36:45 -04:00
parent f49d167a49
commit 967b51d5fc

View File

@ -792,6 +792,12 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
}
}
if ($source instanceof TraitChecker) {
$checked_file_path = $source->getCheckedFilePath();
$project_checker = $this->getFileChecker()->project_checker;
$project_checker->registerAnalyzableFile($checked_file_path);
}
$method_checker->analyze(
clone $class_context,
$global_context ? clone $global_context : null