From 71056192189463ba5c8aa4759f519aa81c3c3f75 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 20 Feb 2024 14:56:13 +0000 Subject: [PATCH] Updated Rector to commit 70b1985921960bb02afbbfe16870bee2605e43b3 https://github.com/rectorphp/rector-src/commit/70b1985921960bb02afbbfe16870bee2605e43b3 [Transform] Allow transform disableParallel() to withoutParallel() on RectorConfigBuilderRector (#5640) --- .../FileWithoutNamespace/RectorConfigBuilderRector.php | 7 ++++++- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php b/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php index dedff1a10f5..f568ac9e263 100644 --- a/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php +++ b/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php @@ -94,8 +94,13 @@ CODE_SAMPLE return null; } $args = $rectorConfigStmt->expr->getArgs(); - $value = $args[0]->value; $name = $this->getName($rectorConfigStmt->expr->name); + if ($name === 'disableParallel') { + $newExpr = $this->nodeFactory->createMethodCall($newExpr, 'withoutParallel'); + $hasChanged = \true; + continue; + } + $value = $args[0]->value; if ($name === 'rule') { Assert::isAOf($rules, Array_::class); $rules->items[] = new ArrayItem($value); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 98e0d0e1137..e842305e87b 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '3eb1aa2fe0b96e96f4f56fae720159107f57e4ae'; + public const PACKAGE_VERSION = '70b1985921960bb02afbbfe16870bee2605e43b3'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-19 23:59:57'; + public const RELEASE_DATE = '2024-02-20 21:53:56'; /** * @var int */