From 402024091b215dca7d91b74c415293323d2dbadc Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 30 Dec 2023 21:58:51 +0100 Subject: [PATCH] Analyse stubs only when not only files are analysed --- src/Command/AnalyseApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/AnalyseApplication.php b/src/Command/AnalyseApplication.php index fac7e45895..2055b5cbe6 100644 --- a/src/Command/AnalyseApplication.php +++ b/src/Command/AnalyseApplication.php @@ -88,7 +88,7 @@ public function analyse( $projectStubFiles = $this->stubFilesProvider->getProjectStubFiles(); - if ($resultCache->isFullAnalysis() && count($projectStubFiles) !== 0) { + if ($resultCache->isFullAnalysis() && count($projectStubFiles) !== 0 && !$onlyFiles) { $stubErrors = $this->stubValidator->validate($projectStubFiles, $debug); $intermediateAnalyserResult = new AnalyserResult( array_merge($intermediateAnalyserResult->getUnorderedErrors(), $stubErrors),