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

Revert erroneous line

This commit is contained in:
Matthew Brown 2020-03-06 19:31:39 -05:00
parent b999037263
commit 0e60a1a223

View File

@ -570,7 +570,9 @@ class Analyzer
public function loadCachedResults(ProjectAnalyzer $project_analyzer) public function loadCachedResults(ProjectAnalyzer $project_analyzer)
{ {
$codebase = $project_analyzer->getCodebase(); $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->analyzed_methods = $codebase->file_reference_provider->getAnalyzedMethods();
$this->existing_issues = $codebase->file_reference_provider->getExistingIssues(); $this->existing_issues = $codebase->file_reference_provider->getExistingIssues();
$file_maps = $codebase->file_reference_provider->getFileMaps(); $file_maps = $codebase->file_reference_provider->getFileMaps();