Skip to content

Commit 86eb0dd

Browse files
authored
[DX] Remove different php version rector reporting to make run more clean (rectorphp#1959)
1 parent 278cd56 commit 86eb0dd

File tree

2 files changed

+1
-114
lines changed

2 files changed

+1
-114
lines changed

packages/VersionBonding/Application/MissedRectorDueVersionChecker.php

-103
This file was deleted.

src/Console/Command/ProcessCommand.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Rector\Core\Configuration\Option;
1313
use Rector\Core\Console\Output\OutputFormatterCollector;
1414
use Rector\Core\Contract\Console\OutputStyleInterface;
15-
use Rector\Core\Contract\Rector\RectorInterface;
1615
use Rector\Core\Exception\ShouldNotHappenException;
1716
use Rector\Core\Reporting\MissingRectorRulesReporter;
1817
use Rector\Core\StaticReflection\DynamicSourceLocatorDecorator;
@@ -21,7 +20,6 @@
2120
use Rector\Core\ValueObject\Configuration;
2221
use Rector\Core\ValueObject\ProcessResult;
2322
use Rector\Core\ValueObjectFactory\ProcessResultFactory;
24-
use Rector\VersionBonding\Application\MissedRectorDueVersionChecker;
2523
use Symfony\Component\Console\Application;
2624
use Symfony\Component\Console\Command\Command;
2725
use Symfony\Component\Console\Input\InputInterface;
@@ -30,9 +28,6 @@
3028

3129
final class ProcessCommand extends AbstractProcessCommand
3230
{
33-
/**
34-
* @param RectorInterface[] $rectors
35-
*/
3631
public function __construct(
3732
private readonly AdditionalAutoloader $additionalAutoloader,
3833
private readonly ChangedFilesDetector $changedFilesDetector,
@@ -41,12 +36,10 @@ public function __construct(
4136
private readonly BootstrapFilesIncluder $bootstrapFilesIncluder,
4237
private readonly ProcessResultFactory $processResultFactory,
4338
private readonly DynamicSourceLocatorDecorator $dynamicSourceLocatorDecorator,
44-
private readonly MissedRectorDueVersionChecker $missedRectorDueVersionChecker,
4539
private readonly EmptyConfigurableRectorChecker $emptyConfigurableRectorChecker,
4640
private readonly OutputFormatterCollector $outputFormatterCollector,
4741
private readonly OutputStyleInterface $rectorOutputStyle,
4842
private readonly MemoryLimiter $memoryLimiter,
49-
private readonly array $rectors
5043
) {
5144
parent::__construct();
5245
}
@@ -82,12 +75,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8275

8376
$paths = $configuration->getPaths();
8477

85-
// 0. add files and directories to static locator
78+
// 1. add files and directories to static locator
8679
$this->dynamicSourceLocatorDecorator->addPaths($paths);
8780

88-
// 1. inform user about non-runnable rules
89-
$this->missedRectorDueVersionChecker->check($this->rectors);
90-
9181
// 2. inform user about registering configurable rule without configuration
9282
$this->emptyConfigurableRectorChecker->check();
9383

0 commit comments

Comments
 (0)