File tree Expand file tree Collapse file tree 2 files changed +7
-31
lines changed
Expand file tree Collapse file tree 2 files changed +7
-31
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Rector \CodingStyle \Rector \ArrowFunction \StaticArrowFunctionRector ;
4- use Rector \CodingStyle \Rector \Closure \StaticClosureRector ;
53use Rector \Php81 \Rector \FuncCall \NullToStrictStringFuncCallArgRector ;
6- use Rector \Set \ValueObject \SetList ;
7- use Rector \Set \ValueObject \LevelSetList ;
84use Rector \Config \RectorConfig ;
95
10- return static function (RectorConfig $ rectorConfig ): void {
11- $ rectorConfig ->sets ([
12- SetList::CODING_STYLE ,
13- LevelSetList::UP_TO_PHP_81 ,
14- SetList::CODE_QUALITY ,
15- SetList::TYPE_DECLARATION
16- ]);
17-
18- $ rectorConfig ->paths ([__DIR__ . '/src ' , __DIR__ . '/spec ' , __FILE__ ]);
19- $ rectorConfig ->importNames ();
20-
21- $ rectorConfig ->skip ([
6+ return RectorConfig::configure ()
7+ ->withPreparedSets (codingStyle: true , codeQuality: true , typeDeclarations: true )
8+ ->withPhpSets (php81: true )
9+ ->withPaths ([__DIR__ . '/src ' , __DIR__ . '/spec ' ])
10+ ->withRootFiles ()
11+ ->withImportNames (removeUnusedImports: true )
12+ ->withSkip ([
2213 NullToStrictStringFuncCallArgRector::class,
23- StaticArrowFunctionRector::class => [
24- __DIR__ . '/spec ' ,
25- ],
26- StaticClosureRector::class => [
27- __DIR__ . '/spec ' ,
28- ]
2914 ]);
30- };
Original file line number Diff line number Diff line change @@ -68,14 +68,6 @@ final class Naming extends AbstractValidator
6868 self ::DOT_TOBE_IN_LAST_WORD => '"." must be at last word character ' ,
6969 ];
7070
71- /**
72- * @param mixed[] $options
73- */
74- public function __construct (array $ options = [])
75- {
76- parent ::__construct ($ options );
77- }
78-
7971 /** @param string $value */
8072 public function isValid ($ value ): bool
8173 {
You can’t perform that action at this time.
0 commit comments