From 0e60a1a223755140ff52a621c9cf61211289d980 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 6 Mar 2020 19:31:39 -0500 Subject: [PATCH] Revert erroneous line --- src/Psalm/Internal/Codebase/Analyzer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Codebase/Analyzer.php b/src/Psalm/Internal/Codebase/Analyzer.php index cef1bd469..c645d2e6c 100644 --- a/src/Psalm/Internal/Codebase/Analyzer.php +++ b/src/Psalm/Internal/Codebase/Analyzer.php @@ -570,7 +570,9 @@ class Analyzer public function loadCachedResults(ProjectAnalyzer $project_analyzer) { $codebase = $project_analyzer->getCodebase(); - if ($codebase->diff_methods) { + if ($codebase->diff_methods + && (!$codebase->collect_references || $codebase->server_mode) + ) { $this->analyzed_methods = $codebase->file_reference_provider->getAnalyzedMethods(); $this->existing_issues = $codebase->file_reference_provider->getExistingIssues(); $file_maps = $codebase->file_reference_provider->getFileMaps();