Skip to content

Commit 5c832c0

Browse files
committed
update downgrade script
1 parent 1175699 commit 5c832c0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

build/rector-downgrade-php-74.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Removing\Rector\Class_\RemoveInterfacesRector;
7+
use Rector\Set\ValueObject\DowngradeLevelSetList;
8+
use Symplify\RuleDocGenerator\Contract\ConfigurableRuleInterface;
9+
use Symplify\RuleDocGenerator\Contract\DocumentedRuleInterface;
10+
11+
return static function (RectorConfig $rectorConfig): void {
12+
$rectorConfig->parallel();
13+
14+
$rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_74]);
15+
16+
$rectorConfig->ruleWithConfiguration(RemoveInterfacesRector::class, [
17+
DocumentedRuleInterface::class,
18+
ConfigurableRuleInterface::class,
19+
]);
20+
21+
$rectorConfig->skip(['*/Tests/*', '*/tests/*', __DIR__ . '/../../tests']);
22+
};
23+

0 commit comments

Comments
 (0)