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