Skip to content

Commit 4020240

Browse files
committed
Analyse stubs only when not only files are analysed
1 parent 7904575 commit 4020240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/AnalyseApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function analyse(
8888

8989
$projectStubFiles = $this->stubFilesProvider->getProjectStubFiles();
9090

91-
if ($resultCache->isFullAnalysis() && count($projectStubFiles) !== 0) {
91+
if ($resultCache->isFullAnalysis() && count($projectStubFiles) !== 0 && !$onlyFiles) {
9292
$stubErrors = $this->stubValidator->validate($projectStubFiles, $debug);
9393
$intermediateAnalyserResult = new AnalyserResult(
9494
array_merge($intermediateAnalyserResult->getUnorderedErrors(), $stubErrors),

0 commit comments

Comments
 (0)