File tree Expand file tree Collapse file tree 4 files changed +38
-105
lines changed Expand file tree Collapse file tree 4 files changed +38
-105
lines changed Original file line number Diff line number Diff line change @@ -138,4 +138,4 @@ Please have a look at [`CONTRIBUTING.md`](CONTRIBUTING.md).
138138
139139## ⭐ License
140140
141- This project is licensed under [ GNU General Public License 3.0 (or later)] ( LICENSE ) .
141+ This project is licensed under [ GNU General Public License 3.0 (or later)] ( LICENSE.md ) .
Original file line number Diff line number Diff line change 2727 },
2828 "require-dev" : {
2929 "armin/editorconfig-cli" : " ^1.0 || ^2.0" ,
30- "eliashaeussler/rector-config" : " ^3.0" ,
3130 "ergebnis/composer-normalize" : " ^2.44" ,
3231 "konradmichalik/php-cs-fixer-preset" : " ^0.1.0" ,
3332 "phpstan/phpstan" : " ^2.0" ,
3433 "phpstan/phpstan-phpunit" : " ^2.0" ,
3534 "phpstan/phpstan-symfony" : " ^2.0" ,
36- "phpunit/phpunit" : " ^10.2 || ^11.0 || ^12.0"
35+ "phpunit/phpunit" : " ^10.2 || ^11.0 || ^12.0" ,
36+ "rector/rector" : " ^2.2"
3737 },
3838 "autoload" : {
3939 "psr-4" : {
Original file line number Diff line number Diff line change 1111 * file that was distributed with this source code.
1212 */
1313
14- use EliasHaeussler \RectorConfig \Config \Config ;
1514use Rector \Config \RectorConfig ;
16- use Rector \Php81 \ Rector \ FuncCall \ NullToStrictStringFuncCallArgRector ;
17- use Rector \PHPUnit \ PHPUnit60 \ Rector \ClassMethod \AddDoesNotPerformAssertionToNonAssertingTestRector ;
15+ use Rector \Set \ ValueObject \ LevelSetList ;
16+ use Rector \TypeDeclaration \ Rector \ClassMethod \AddVoidReturnTypeWhereNoReturnRector ;
1817use Rector \ValueObject \PhpVersion ;
1918
20- return static function (RectorConfig $ rectorConfig ): void {
21- Config::create ($ rectorConfig , PhpVersion::PHP_81 )
22- ->in (
23- __DIR__ .'/src ' ,
24- __DIR__ .'/tests ' ,
25- )
26- ->not (
27- __DIR__ .'/tests/vendor ' ,
28- )
29- ->withSymfony ()
30- ->withPHPUnit ()
31- ->skip (NullToStrictStringFuncCallArgRector::class, [
32- 'src/Command/ValidateTranslationCommand.php ' ,
33- ])
34- ->skip (AddDoesNotPerformAssertionToNonAssertingTestRector::class)
35- ->apply ()
36- ;
37- };
19+ return RectorConfig::configure ()
20+ ->withPaths ([
21+ __DIR__ .'/src ' ,
22+ __DIR__ .'/tests ' ,
23+ ])
24+ ->withPhpVersion (PhpVersion::PHP_81 )
25+ ->withSets ([
26+ LevelSetList::UP_TO_PHP_81 ,
27+ ])
28+ ->withComposerBased (symfony: true )
29+ ->withRules ([
30+ AddVoidReturnTypeWhereNoReturnRector::class,
31+ ])
32+ ;
You can’t perform that action at this time.
0 commit comments