From 6986e1fbdbf4e0318574a07ed508d12806f848ee Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 3 Mar 2024 01:03:16 +0000 Subject: [PATCH] Updated Rector to commit c9fe3caacced982e1c21d7203e9ea0f1bb2092c8 https://github.com/rectorphp/rector-src/commit/c9fe3caacced982e1c21d7203e9ea0f1bb2092c8 [Transform] Allow transform phpVersion() to withPhpVersion() on RectorConfigBuilderRector (#5678) --- .../FileWithoutNamespace/RectorConfigBuilderRector.php | 5 +++++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php b/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php index c0e141b1f332..12b70173b9f0 100644 --- a/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php +++ b/rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php @@ -149,6 +149,11 @@ public function refactor(Node $node) : ?Node $hasChanged = \true; continue; } + if ($name === 'phpVersion') { + $newExpr = $this->nodeFactory->createMethodCall($newExpr, 'withPhpVersion', [$value]); + $hasChanged = \true; + continue; + } // implementing method by method return null; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index b78267323678..749dc20aad4d 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 = 'dea2e16665cf567c20664c7ef9bac38d0d7d4f49'; + public const PACKAGE_VERSION = 'c9fe3caacced982e1c21d7203e9ea0f1bb2092c8'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-03-02 13:06:24'; + public const RELEASE_DATE = '2024-03-03 08:00:50'; /** * @var int */