diff --git a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php index c279965cd..a32260a75 100644 --- a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php @@ -684,7 +684,7 @@ class ProjectAnalyzer true ); - if ($this->project_cache_provider && $this->parser_cache_provider && !$is_diff) { + if ($this->parser_cache_provider && !$is_diff) { $removed_parser_files = $this->parser_cache_provider->deleteOldParserCaches($start_checks); if ($removed_parser_files) {