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