Skip to content

Commit

Permalink
Analyse stubs only when not only files are analysed
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Dec 30, 2023
1 parent 7904575 commit 4020240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/AnalyseApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4020240

Please sign in to comment.