File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change 33declare (strict_types=1 );
44
55use Rector \Config \RectorConfig ;
6+ use Rector \PHPUnit \Set \PHPUnitSetList ;
7+ use Rector \Set \ValueObject \LevelSetList ;
8+ use Rector \Set \ValueObject \SetList ;
9+ use Rector \TypeDeclaration \Rector \ClassMethod \AddVoidReturnTypeWhereNoReturnRector ;
610
711return RectorConfig::configure ()
812 ->withPaths (
1115 __DIR__ . '/../tests ' ,
1216 ]
1317 )
14- ->withPhpSets ()
15- ->withRules (
16- [
17- // AddVoidReturnTypeWhereNoReturnRector::class,
18- ]
19- );
18+ ->withSets ([
19+ // Rector sets
20+
21+ LevelSetList::UP_TO_PHP_73 ,
22+
23+ // SetList::CODE_QUALITY,
24+ // SetList::CODING_STYLE,
25+ // SetList::DEAD_CODE,
26+ // SetList::EARLY_RETURN,
27+ // SetList::INSTANCEOF,
28+ // SetList::NAMING,
29+ // SetList::PRIVATIZATION,
30+ SetList::STRICT_BOOLEANS ,
31+ SetList::TYPE_DECLARATION ,
32+
33+ // PHPUnit sets
34+
35+ PHPUnitSetList::PHPUNIT_90 ,
36+ // PHPUnitSetList::PHPUNIT_CODE_QUALITY,
37+ ])
38+ ->withRules ([
39+ AddVoidReturnTypeWhereNoReturnRector::class,
40+ ])
41+ ->withImportNames (true , true , false );
You can’t perform that action at this time.
0 commit comments