Skip to content

Commit

Permalink
fails in CI if there are --dry-run classes to finalise
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 13, 2024
1 parent e25f654 commit b53403d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Command/FinalizeClassesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$isDryRun ? 'would be' : 'were'
));

// to make it fail in CI
if ($isDryRun && count($finalizedFilePaths)) {

Check failure on line 153 in src/Command/FinalizeClassesCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan

Right side of && is always true.
return self::FAILURE;
}

return Command::SUCCESS;
}
}

0 comments on commit b53403d

Please sign in to comment.