Skip to content

Commit

Permalink
[Config] Restore default values for RectorConfig->parallel() config s…
Browse files Browse the repository at this point in the history
…imilar to original <=0.18.x version (#5472)

* [Config] Restore default values for RectorConfig->parallel() config similar to original <=0.18.x version

* remove comment

* regenerate docs

* [ci-review] Rector Rectify

* update jobsize to 16

---------

Co-authored-by: GitHub Action <actions@github.com>
  • Loading branch information
samsonasik and actions-user committed Jan 23, 2024
1 parent aa66151 commit 2d31644
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ public function disableParallel(): void
SimpleParameterProvider::setParameter(Option::PARALLEL, false);
}

/**
* Defaults in sync with https://phpstan.org/config-reference#parallel-processing
* as we run PHPStan as well
*/
public function parallel(int $processTimeout = 120, int $maxNumberOfProcess = 32, int $jobSize = 20): void
public function parallel(int $processTimeout = 120, int $maxNumberOfProcess = 16, int $jobSize = 16): void
{
SimpleParameterProvider::setParameter(Option::PARALLEL, true);
SimpleParameterProvider::setParameter(Option::PARALLEL_JOB_TIMEOUT_IN_SECONDS, $processTimeout);
Expand Down

0 comments on commit 2d31644

Please sign in to comment.