-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
27 lines (25 loc) · 797 Bytes
/
rector.php
File metadata and controls
27 lines (25 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
use Rector\Set\ValueObject\LevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
return RectorConfig::configure()
->withPhpVersion(PhpVersion::PHP_84)
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPreparedSets(doctrineCodeQuality: true)
->withSets([
LevelSetList::UP_TO_PHP_84,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::PHPUNIT_120,
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES
])
->withAttributesSets(doctrine: true)
->withTypeCoverageLevel(3)
->withParallel(240, 8, 5)
->withSkip([
PreferPHPUnitThisCallRector::class
]);