Updated Rector to commit b523b734e052b47d756330e7deeaa68372fbd494

b523b734e0 [Configuration] Fix parallel config always replaced by next config per-default true (#5683)
This commit is contained in:
Tomas Votruba 2024-03-03 20:46:43 +00:00
parent 7596fa6da0
commit 4fdf5d4ab4
2 changed files with 10 additions and 9 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '1.0.2';
public const PACKAGE_VERSION = 'b523b734e052b47d756330e7deeaa68372fbd494';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-03 09:40:51';
public const RELEASE_DATE = '2024-03-04 03:44:29';
/**
* @var int
*/

View File

@ -66,10 +66,9 @@ final class RectorConfigBuilder
*/
private $containerCacheDirectory;
/**
* Enabled by default
* @var bool
* @var bool|null
*/
private $parallel = \true;
private $parallel;
/**
* @var int
*/
@ -222,10 +221,12 @@ final class RectorConfigBuilder
if ($this->phpVersion !== null) {
$rectorConfig->phpVersion($this->phpVersion);
}
if ($this->parallel) {
$rectorConfig->parallel($this->parallelTimeoutSeconds, $this->parallelMaxNumberOfProcess, $this->parallelJobSize);
} else {
$rectorConfig->disableParallel();
if ($this->parallel !== null) {
if ($this->parallel) {
$rectorConfig->parallel($this->parallelTimeoutSeconds, $this->parallelMaxNumberOfProcess, $this->parallelJobSize);
} else {
$rectorConfig->disableParallel();
}
}
if ($this->symfonyContainerXmlFile !== null) {
$rectorConfig->symfonyContainerXml($this->symfonyContainerXmlFile);