Skip to content

Commit dba75d5

Browse files
#38 Update rector configuration with minimal version PHP 8.1
1 parent 3c8e186 commit dba75d5

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

rector.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,21 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Set\ValueObject\LevelSetList;
7-
use Rector\Symfony\Set\SymfonySetList;
87
use Rector\ValueObject\PhpVersion;
98

109
return RectorConfig::configure()
11-
->withPhpVersion(PhpVersion::PHP_82)
10+
->withPhpVersion(PhpVersion::PHP_84)
1211
->withPaths([
1312
__DIR__.'/src',
1413
__DIR__.'/tests',
1514
])
16-
->withPhpSets(php82: true)
15+
->withPhpSets(php81: true)
1716
// 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)
2220
->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,
2922
])
23+
->withSymfonyContainerXml(__DIR__.'/var/cache/dev/App_KernelDevDebugContainer.xml')
3024
;

0 commit comments

Comments
 (0)