diff --git a/src/Reports/Cbf.php b/src/Reports/Cbf.php index 0ecde76e67..b0ee63a063 100644 --- a/src/Reports/Cbf.php +++ b/src/Reports/Cbf.php @@ -57,7 +57,7 @@ public function generateFileReport($report, File $phpcsFile, $showSources=false, // even if nothing was fixed. Exit here because we // can't process any more than 1 file in this setup. $fixedContent = $phpcsFile->fixer->getContents(); - throw new DeepExitException($fixedContent, 1); + throw new DeepExitException($fixedContent, $errors > 0); } if ($errors === 0) {