File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 64
64
65
65
- name : Analyze for refactoring
66
66
run : |
67
- composer global require --dev rector/rector
67
+ composer global require --dev rector/rector:^0.12.10
68
68
rector process --dry-run --no-progress-bar
Original file line number Diff line number Diff line change 30
30
use Rector \Php73 \Rector \FuncCall \JsonThrowOnErrorRector ;
31
31
use Rector \Php73 \Rector \FuncCall \StringifyStrNeedlesRector ;
32
32
use Rector \PHPUnit \Set \PHPUnitSetList ;
33
+ use Rector \PSR4 \Rector \FileWithoutNamespace \NormalizeNamespaceByPSR4ComposerAutoloadRector ;
33
34
use Rector \Set \ValueObject \LevelSetList ;
34
35
use Rector \Set \ValueObject \SetList ;
35
36
use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
41
42
$ containerConfigurator ->import (PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD );
42
43
$ containerConfigurator ->import (PHPUnitSetList::PHPUNIT_80 );
43
44
45
+
44
46
$ parameters = $ containerConfigurator ->parameters ();
45
47
48
+ $ parameters ->set (Option::PARALLEL , true );
46
49
// The paths to refactor (can also be supplied with CLI arguments)
47
50
$ parameters ->set (Option::PATHS , [
48
51
__DIR__ . '/app ' ,
105
108
$ services ->set (FuncGetArgsToVariadicParamRector::class);
106
109
$ services ->set (MakeInheritedMethodVisibilitySameAsParentRector::class);
107
110
$ services ->set (SimplifyEmptyArrayCheckRector::class);
111
+ $ services ->set (NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
108
112
};
You can’t perform that action at this time.
0 commit comments