|
5 | 5 | use Rector\Config\RectorConfig; |
6 | 6 | use Rector\Core\ValueObject\PhpVersion; |
7 | 7 | use Rector\Doctrine\Set\DoctrineSetList; |
8 | | -use Rector\Php74\Rector\Property\TypedPropertyRector; |
9 | 8 | use Rector\PHPUnit\Set\PHPUnitLevelSetList; |
10 | 9 | use Rector\PHPUnit\Set\PHPUnitSetList; |
11 | 10 | use Rector\Set\ValueObject\LevelSetList; |
|
14 | 13 | use Rector\Symfony\Set\SymfonySetList; |
15 | 14 |
|
16 | 15 | return static function (RectorConfig $config): void { |
17 | | - $config->sets([ |
18 | | - SetList::DEAD_CODE, |
19 | | - LevelSetList::UP_TO_PHP_81, |
20 | | - SymfonyLevelSetList::UP_TO_SYMFONY_54, |
21 | | - SymfonySetList::SYMFONY_CODE_QUALITY, |
22 | | - SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION, |
23 | | - SymfonySetList::SYMFONY_STRICT, |
24 | | - DoctrineSetList::DOCTRINE_CODE_QUALITY, |
25 | | - DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES, |
26 | | - PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, |
27 | | - PHPUnitLevelSetList::UP_TO_PHPUNIT_100, |
28 | | - PHPUnitSetList::PHPUNIT_CODE_QUALITY, |
29 | | - PHPUnitSetList::PHPUNIT_EXCEPTION, |
30 | | - PHPUnitSetList::REMOVE_MOCKS, |
31 | | - PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER, |
32 | | - ]); |
| 16 | + $config->import(SetList::DEAD_CODE); |
| 17 | + $config->import(LevelSetList::UP_TO_PHP_81); |
| 18 | + $config->import(SymfonyLevelSetList::UP_TO_SYMFONY_54); |
| 19 | + $config->import(SymfonySetList::SYMFONY_CODE_QUALITY); |
| 20 | + $config->import(SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION); |
| 21 | + $config->import(SymfonySetList::SYMFONY_STRICT); |
| 22 | + $config->import(SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES); |
| 23 | + $config->import(DoctrineSetList::DOCTRINE_CODE_QUALITY); |
| 24 | + $config->import(DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES); |
| 25 | + $config->import(PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD); |
| 26 | + $config->import(PHPUnitLevelSetList::UP_TO_PHPUNIT_90); |
| 27 | + $config->import(PHPUnitSetList::PHPUNIT_CODE_QUALITY); |
| 28 | + $config->import(PHPUnitSetList::PHPUNIT_EXCEPTION); |
| 29 | + $config->import(PHPUnitSetList::REMOVE_MOCKS); |
| 30 | + $config->import(PHPUnitSetList::PHPUNIT_YIELD_DATA_PROVIDER); |
33 | 31 | $config->parallel(); |
34 | 32 | $config->paths([__DIR__ . '/src', __DIR__ . '/performance', __DIR__ . '/tests']); |
35 | 33 | $config->skip([ |
|
40 | 38 | $config->phpVersion(PhpVersion::PHP_81); |
41 | 39 | $config->importNames(); |
42 | 40 | $config->importShortClasses(); |
43 | | - |
44 | | - $services = $config->services(); |
45 | | - $services->set(TypedPropertyRector::class); |
46 | 41 | }; |
0 commit comments