Skip to content

Commit 6986e1f

Browse files
committed
Updated Rector to commit c9fe3caacced982e1c21d7203e9ea0f1bb2092c8
rectorphp/rector-src@c9fe3ca [Transform] Allow transform phpVersion() to withPhpVersion() on RectorConfigBuilderRector (#5678)
1 parent d31429d commit 6986e1f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

rules/Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ public function refactor(Node $node) : ?Node
149149
$hasChanged = \true;
150150
continue;
151151
}
152+
if ($name === 'phpVersion') {
153+
$newExpr = $this->nodeFactory->createMethodCall($newExpr, 'withPhpVersion', [$value]);
154+
$hasChanged = \true;
155+
continue;
156+
}
152157
// implementing method by method
153158
return null;
154159
}

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'dea2e16665cf567c20664c7ef9bac38d0d7d4f49';
22+
public const PACKAGE_VERSION = 'c9fe3caacced982e1c21d7203e9ea0f1bb2092c8';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-03-02 13:06:24';
27+
public const RELEASE_DATE = '2024-03-03 08:00:50';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)