Skip to content

Commit 492cfbc

Browse files
committed
[BCB] Removed baselineNeon error formatter, use --generate-baseline CLI option instead
1 parent 9c7017c commit 492cfbc

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

conf/config.neon

-5
Original file line numberDiff line numberDiff line change
@@ -1747,11 +1747,6 @@ services:
17471747
errorFormatter.raw:
17481748
class: PHPStan\Command\ErrorFormatter\RawErrorFormatter
17491749

1750-
errorFormatter.baselineNeon:
1751-
class: PHPStan\Command\ErrorFormatter\BaselineNeonErrorFormatter
1752-
arguments:
1753-
relativePathHelper: @simpleRelativePathHelper
1754-
17551750
errorFormatter.table:
17561751
class: PHPStan\Command\ErrorFormatter\TableErrorFormatter
17571752
arguments:

src/Command/AnalyseCommand.php

-13
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
181181
return 1;
182182
}
183183

184-
if ($errorFormat === 'baselineNeon') {
185-
$errorOutput = $inceptionResult->getErrorOutput();
186-
$errorOutput->writeLineFormatted('⚠️ You\'re using an obsolete option <fg=cyan>--error-format baselineNeon</>. ⚠️️');
187-
$errorOutput->writeLineFormatted('');
188-
$errorOutput->writeLineFormatted(' There\'s a new and much better option <fg=cyan>--generate-baseline</>. Here are the advantages:');
189-
$errorOutput->writeLineFormatted(' 1) The current baseline file does not have to be commented-out');
190-
$errorOutput->writeLineFormatted(' nor emptied when generating the new baseline. It\'s excluded automatically.');
191-
$errorOutput->writeLineFormatted(' 2) Output no longer has to be redirected to a file, PHPStan saves the baseline');
192-
$errorOutput->writeLineFormatted(' to a specified path (defaults to <fg=cyan>phpstan-baseline.neon</>).');
193-
$errorOutput->writeLineFormatted(' 3) Baseline contains correct relative paths if saved to a subdirectory.');
194-
$errorOutput->writeLineFormatted('');
195-
}
196-
197184
$generateBaselineFile = $inceptionResult->getGenerateBaselineFile();
198185
if ($generateBaselineFile !== null) {
199186
$baselineExtension = pathinfo($generateBaselineFile, PATHINFO_EXTENSION);

0 commit comments

Comments
 (0)