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:
parent
f49d167a49
commit
967b51d5fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user