File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 6464
6565 - name : Analyze for refactoring
6666 run : |
67- composer global require --dev rector/rector
67+ composer global require --dev rector/rector:^0.12.10
6868 rector process --dry-run --no-progress-bar
Original file line number Diff line number Diff line change 3030use Rector \Php73 \Rector \FuncCall \JsonThrowOnErrorRector ;
3131use Rector \Php73 \Rector \FuncCall \StringifyStrNeedlesRector ;
3232use Rector \PHPUnit \Set \PHPUnitSetList ;
33+ use Rector \PSR4 \Rector \FileWithoutNamespace \NormalizeNamespaceByPSR4ComposerAutoloadRector ;
3334use Rector \Set \ValueObject \LevelSetList ;
3435use Rector \Set \ValueObject \SetList ;
3536use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
4344
4445 $ parameters = $ containerConfigurator ->parameters ();
4546
47+ $ parameters ->set (Option::PARALLEL , true );
4648 // The paths to refactor (can also be supplied with CLI arguments)
4749 $ parameters ->set (Option::PATHS , [
4850 __DIR__ . '/app ' ,
105107 $ services ->set (FuncGetArgsToVariadicParamRector::class);
106108 $ services ->set (MakeInheritedMethodVisibilitySameAsParentRector::class);
107109 $ services ->set (SimplifyEmptyArrayCheckRector::class);
110+ $ services ->set (NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
108111};
You can’t perform that action at this time.
0 commit comments