From ad87d1bacce90b8b1652a5b7c5bafe577e76ba04 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 5 Dec 2020 15:54:05 +0100 Subject: [PATCH] Fix support of extraFiles (#4785) --- src/Psalm/Internal/Analyzer/ProjectAnalyzer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php index 1d5d6ee7c..b70cce6ba 100644 --- a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php @@ -1149,6 +1149,8 @@ class ProjectAnalyzer public function checkPaths(array $paths_to_check): void { $this->visitAutoloadFiles(); + + $this->codebase->scanner->addFilesToShallowScan($this->extra_files); foreach ($paths_to_check as $path) { $this->progress->debug('Checking ' . $path . "\n");