File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Rector \Config \RectorConfig ;
4+ use Rector \PHPUnit \Set \PHPUnitSetList ;
5+ use Rector \Set \ValueObject \LevelSetList ;
6+ use Rector \TypeDeclaration \Rector \ClassMethod \AddVoidReturnTypeWhereNoReturnRector ;
7+ use Rector \ValueObject \PhpVersion ;
8+
9+ return static function (RectorConfig $ rectorConfig ): void {
10+ $ rectorConfig ->sets ([
11+ LevelSetList::UP_TO_PHP_74 ,
12+ //PHPUnitSetList::PHPUNIT_50,
13+ //PHPUnitSetList::PHPUNIT_60,
14+ //PHPUnitSetList::PHPUNIT_70,
15+ ]);
16+
17+ $ rectorConfig ->paths ([
18+ __DIR__ . '/examples ' ,
19+ __DIR__ . '/src ' ,
20+ __DIR__ . '/tests ' ,
21+ ]);
22+
23+ $ rectorConfig ->rules ([
24+ //AddVoidReturnTypeWhereNoReturnRector::class,
25+ ]);
26+
27+ // Define your target version, which you want to support
28+ $ rectorConfig ->phpVersion (PhpVersion::PHP_74 );
29+ };
You can’t perform that action at this time.
0 commit comments