File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1818 __DIR__ . '/tests ' ,
1919 __DIR__ . '/rules-tests ' ,
2020 __DIR__ . '/ecs.php ' ,
21+ __DIR__ . '/rector.php ' ,
2122 ]);
2223
2324 $ ecsConfig ->ruleWithConfiguration (NoSuperfluousPhpdocTagsFixer::class, [
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use Rector \CodingStyle \Rector \String_ \UseClassKeywordForClassNameResolutionRector ;
56use Rector \Config \RectorConfig ;
67use Rector \Php55 \Rector \String_ \StringClassNameToClassConstantRector ;
78use Rector \PHPUnit \Set \PHPUnitSetList ;
1011
1112return static function (RectorConfig $ rectorConfig ): void {
1213 $ rectorConfig ->importNames ();
14+ $ rectorConfig ->removeUnusedImports ();
1315
1416 $ rectorConfig ->sets ([
1517 LevelSetList::UP_TO_PHP_81 ,
3032 __DIR__ . '/tests ' ,
3133 __DIR__ . '/rules-tests ' ,
3234 __DIR__ . '/config ' ,
35+ __DIR__ . '/rector.php ' ,
36+ __DIR__ . '/ecs.php ' ,
3337 ]);
3438
3539 $ rectorConfig ->skip ([
3640 StringClassNameToClassConstantRector::class,
3741
38- \ Rector \ CodingStyle \ Rector \ String_ \ UseClassKeywordForClassNameResolutionRector::class => [
42+ UseClassKeywordForClassNameResolutionRector::class => [
3943 // not useful short class cases, possibly skip in the rule
4044 __DIR__ . '/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php ' ,
4145 __DIR__ . '/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php ' ,
Original file line number Diff line number Diff line change 77use PhpParser \Node ;
88use PhpParser \Node \Expr ;
99use PhpParser \Node \Expr \Closure ;
10- use PhpParser \Node \Stmt ;
1110use PhpParser \Node \Stmt \Do_ ;
1211use PhpParser \Node \Stmt \Echo_ ;
1312use PhpParser \Node \Stmt \Expression ;
You can’t perform that action at this time.
0 commit comments