Skip to content

Commit 83fe914

Browse files
#60 Fix rector configuration because withComposerBased(symfony: true) doesn't work well with ^6.4|^7.3
1 parent a7b018b commit 83fe914

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rector.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Set\ValueObject\LevelSetList;
7+
use Rector\Symfony\Set\SymfonySetList;
78
use Rector\ValueObject\PhpVersion;
89

910
return RectorConfig::configure()
@@ -14,10 +15,13 @@
1415
])
1516
->withPhpSets(php81: true)
1617
// here we can define, what prepared sets of rules will be applied
17-
->withComposerBased(doctrine: true, symfony: true)
18+
->withComposerBased(doctrine: true)
1819
->withPreparedSets(deadCode: true, codeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true)
1920
->withAttributesSets(symfony: true, doctrine: true)
2021
->withSets([
2122
LevelSetList::UP_TO_PHP_81,
23+
SymfonySetList::SYMFONY_64,
24+
SymfonySetList::SYMFONY_CODE_QUALITY,
25+
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
2226
])
2327
;

0 commit comments

Comments
 (0)