1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add included files when scanning cached storage

This commit is contained in:
Matthew Brown 2018-02-19 15:17:28 -05:00
parent d8b9bcba4d
commit 82fe241831

View File

@ -293,6 +293,10 @@ class Scanner
$this->file_storage_provider->cache->writeToCache($file_storage, $file_contents);
}
} else {
foreach ($file_storage->included_file_paths as $file_path) {
$this->codebase->scanner->queueFileForScanning($file_path);
}
foreach ($file_storage->classlikes_in_file as $fq_classlike_name) {
$this->codebase->exhumeClassLikeStorage($fq_classlike_name, $file_path);
}