Skip to content

Commit 0e980dc

Browse files
#60 Update rector configuration with minimal version PHP 8.1
1 parent 2226d7c commit 0e980dc

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

rector.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,21 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\Doctrine\Set\DoctrineSetList;
76
use Rector\Set\ValueObject\LevelSetList;
8-
use Rector\Symfony\Set\SymfonySetList;
97
use Rector\ValueObject\PhpVersion;
108

119
return RectorConfig::configure()
12-
->withPhpVersion(PhpVersion::PHP_82)
10+
->withPhpVersion(PhpVersion::PHP_84)
1311
->withPaths([
1412
__DIR__.'/src',
1513
__DIR__.'/tests',
1614
])
17-
->withPhpSets(php82: true)
15+
->withPhpSets(php81: true)
1816
// here we can define, what prepared sets of rules will be applied
19-
->withPreparedSets(
20-
deadCode: true,
21-
codeQuality: true
22-
)
17+
->withComposerBased(doctrine: true, symfony: true)
18+
->withPreparedSets(deadCode: true, codeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true)
19+
->withAttributesSets(symfony: true, doctrine: true)
2320
->withSets([
24-
LevelSetList::UP_TO_PHP_82,
25-
SymfonySetList::SYMFONY_64,
26-
SymfonySetList::SYMFONY_71,
27-
SymfonySetList::SYMFONY_CODE_QUALITY,
28-
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
29-
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
30-
DoctrineSetList::DOCTRINE_CODE_QUALITY,
31-
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES,
21+
LevelSetList::UP_TO_PHP_81,
3222
])
3323
;

0 commit comments

Comments
 (0)