Skip to content

Commit 07a268e

Browse files
committed
[Rector] Set parallel config
1 parent f7de1ae commit 07a268e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ jobs:
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

src/rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3131
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
3232
use Rector\PHPUnit\Set\PHPUnitSetList;
33+
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3334
use Rector\Set\ValueObject\LevelSetList;
3435
use Rector\Set\ValueObject\SetList;
3536
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
@@ -41,8 +42,10 @@
4142
$containerConfigurator->import(PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD);
4243
$containerConfigurator->import(PHPUnitSetList::PHPUNIT_80);
4344

45+
4446
$parameters = $containerConfigurator->parameters();
4547

48+
$parameters->set(Option::PARALLEL, true);
4649
// The paths to refactor (can also be supplied with CLI arguments)
4750
$parameters->set(Option::PATHS, [
4851
__DIR__ . '/app',
@@ -105,4 +108,5 @@
105108
$services->set(FuncGetArgsToVariadicParamRector::class);
106109
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
107110
$services->set(SimplifyEmptyArrayCheckRector::class);
111+
$services->set(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
108112
};

0 commit comments

Comments
 (0)