|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | use Rector\Config\RectorConfig; |
6 | | -use Rector\Doctrine\Set\DoctrineSetList; |
7 | 6 | use Rector\Set\ValueObject\LevelSetList; |
8 | | -use Rector\Symfony\Set\SymfonySetList; |
9 | 7 | use Rector\ValueObject\PhpVersion; |
10 | 8 |
|
11 | 9 | return RectorConfig::configure() |
12 | | - ->withPhpVersion(PhpVersion::PHP_82) |
| 10 | + ->withPhpVersion(PhpVersion::PHP_84) |
13 | 11 | ->withPaths([ |
14 | 12 | __DIR__.'/src', |
15 | 13 | __DIR__.'/tests', |
16 | 14 | ]) |
17 | | - ->withPhpSets(php82: true) |
| 15 | + ->withPhpSets(php81: true) |
18 | 16 | // here we can define, what prepared sets of rules will be applied |
19 | | - ->withPreparedSets( |
20 | | - deadCode: true, |
21 | | - codeQuality: true |
22 | | - ) |
| 17 | + ->withComposerBased(doctrine: true, symfony: true) |
| 18 | + ->withPreparedSets(deadCode: true, codeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true) |
| 19 | + ->withAttributesSets(symfony: true, doctrine: true) |
23 | 20 | ->withSets([ |
24 | | - LevelSetList::UP_TO_PHP_82, |
25 | | - SymfonySetList::SYMFONY_64, |
26 | | - SymfonySetList::SYMFONY_71, |
27 | | - SymfonySetList::SYMFONY_CODE_QUALITY, |
28 | | - SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION, |
29 | | - SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES, |
30 | | - DoctrineSetList::DOCTRINE_CODE_QUALITY, |
31 | | - DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES, |
| 21 | + LevelSetList::UP_TO_PHP_81, |
32 | 22 | ]) |
33 | 23 | ; |
0 commit comments