Skip to content

Commit 0729fb6

Browse files
authored
Merge pull request #4 from samsonasik/set-parallel-config
[Rector] Set parallel config
2 parents f7de1ae + d2f2d66 commit 0729fb6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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: 3 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;
@@ -43,6 +44,7 @@
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',
@@ -105,4 +107,5 @@
105107
$services->set(FuncGetArgsToVariadicParamRector::class);
106108
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
107109
$services->set(SimplifyEmptyArrayCheckRector::class);
110+
$services->set(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
108111
};

0 commit comments

Comments
 (0)