Skip to content

Commit 8464e81

Browse files
#20 Update rector configuration with minimal version PHP 8.1
1 parent 4308e02 commit 8464e81

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

rector.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@
88
use Rector\ValueObject\PhpVersion;
99

1010
return RectorConfig::configure()
11-
->withPhpVersion(PhpVersion::PHP_82)
11+
->withPhpVersion(PhpVersion::PHP_84)
1212
->withPaths([
1313
__DIR__.'/src',
1414
__DIR__.'/tests',
1515
])
16-
->withPhpSets(php82: true)
16+
->withPhpSets(php81: true)
1717
// here we can define, what prepared sets of rules will be applied
18-
->withPreparedSets(
19-
deadCode: true,
20-
codeQuality: true
21-
)
18+
->withPreparedSets(deadCode: true, codeQuality: true, symfonyCodeQuality: true)
19+
->withAttributesSets(symfony: true)
2220
->withSets([
23-
LevelSetList::UP_TO_PHP_82,
21+
LevelSetList::UP_TO_PHP_81,
2422
SymfonySetList::SYMFONY_64,
25-
SymfonySetList::SYMFONY_71,
2623
SymfonySetList::SYMFONY_CODE_QUALITY,
2724
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
28-
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
2925
])
3026
;

0 commit comments

Comments
 (0)