Skip to content

Commit 62a1233

Browse files
committed
Do not market fixable errors for now
1 parent f261ce6 commit 62a1233

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Command/ErrorFormatter/TableErrorFormatter.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,10 @@ public function formatErrors(
8484
$fileErrors[$fileSpecificError->getFile()][] = $fileSpecificError;
8585
}
8686

87-
$fixableErrorsCount = 0;
8887
foreach ($fileErrors as $file => $errors) {
8988
$rows = [];
9089
foreach ($errors as $error) {
9190
$message = $error->getMessage();
92-
if ($error->getFixedErrorDiff() !== null) {
93-
$message .= ' 🔧';
94-
$fixableErrorsCount++;
95-
}
9691
$filePath = $error->getTraitFilePath() ?? $error->getFilePath();
9792
if ($error->getIdentifier() !== null && $error->canBeIgnored()) {
9893
$message .= "\n";
@@ -169,11 +164,6 @@ public function formatErrors(
169164
$style->warning($finalMessage);
170165
}
171166

172-
if ($fixableErrorsCount > 0) {
173-
$output->writeLineFormatted(sprintf('🔧 %d %s can be fixed automatically. Run PHPStan again with <fg=cyan>--fix</>.', $fixableErrorsCount, $fixableErrorsCount === 1 ? 'error' : 'errors'));
174-
$output->writeLineFormatted('');
175-
}
176-
177167
return $analysisResult->getTotalErrorsCount() > 0 ? 1 : 0;
178168
}
179169

0 commit comments

Comments
 (0)