|
6 | 6 | use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; |
7 | 7 | use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\DataProviderArrayItemsNewLinedRector; |
8 | 8 | use Rector\PHPUnit\Set\PHPUnitSetList; |
9 | | -use Rector\Set\ValueObject\LevelSetList; |
10 | 9 | use Rector\Set\ValueObject\SetList; |
11 | 10 | use Rector\Symfony\Set\SymfonySetList; |
12 | | -use Rector\Symfony\Symfony42\Rector\New_\StringToArrayArgumentProcessRector; |
13 | 11 | use Rector\ValueObject\PhpVersion; |
14 | 12 |
|
15 | 13 | return static function (RectorConfig $config): void { |
16 | 14 | $config->import(SetList::DEAD_CODE); |
17 | | - $config->import(LevelSetList::UP_TO_PHP_81); |
| 15 | + $config->import(SetList::PHP_81); |
18 | 16 | $config->import(SymfonySetList::SYMFONY_50_TYPES); |
19 | | - $config->import(SymfonySetList::SYMFONY_52_VALIDATOR_ATTRIBUTES); |
20 | 17 | $config->import(SymfonySetList::SYMFONY_CODE_QUALITY); |
21 | 18 | $config->import(SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION); |
22 | | - $config->import(SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES); |
23 | 19 | $config->import(PHPUnitSetList::PHPUNIT_CODE_QUALITY); |
24 | 20 | $config->import(PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES); |
25 | 21 | $config->paths([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/ecs.php', __DIR__ . '/rector.php']); |
26 | | - $config->skip([ |
27 | | - DataProviderArrayItemsNewLinedRector::class, |
28 | | - PreferPHPUnitThisCallRector::class, |
29 | | - StringToArrayArgumentProcessRector::class => [__DIR__ . '/tests'], |
30 | | - ]); |
| 22 | + $config->skip([DataProviderArrayItemsNewLinedRector::class, PreferPHPUnitThisCallRector::class]); |
| 23 | + $config::configure()->withComposerBased(twig: true, phpunit: true); |
| 24 | + $config::configure()->withPhpSets(); |
| 25 | + $config::configure()->withAttributesSets(); |
31 | 26 | $config->phpVersion(PhpVersion::PHP_81); |
32 | 27 | $config->parallel(); |
33 | 28 | $config->importNames(); |
|
0 commit comments