From 13fa6331c732856846fe505d20e01c89a203c895 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 8 Nov 2024 10:28:39 +0000 Subject: [PATCH] Updated Rector to commit 1b1807b0f8426641e13e5914389e1c118b3a3d14 https://github.com/rectorphp/rector-src/commit/1b1807b0f8426641e13e5914389e1c118b3a3d14 [Privatization] Skip with parameter on PrivatizeLocalGetterToPropertyRector (#6412) --- .../MethodCall/PrivatizeLocalGetterToPropertyRector.php | 3 +++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php b/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php index fb763cd2f9c..4ba350b5d68 100644 --- a/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php +++ b/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php @@ -107,6 +107,9 @@ public function refactor(Node $node) : ?Node } private function matchLocalPropertyFetchInGetterMethod(ClassMethod $classMethod) : ?PropertyFetch { + if ($classMethod->params !== []) { + return null; + } $stmts = (array) $classMethod->stmts; if (\count($stmts) !== 1) { return null; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 2d308ac1596..0d9e64d2575 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 = '293eb9701e8035c7d1e57ba0627a637ad70c7c16'; + public const PACKAGE_VERSION = '1b1807b0f8426641e13e5914389e1c118b3a3d14'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-11-06 20:29:42'; + public const RELEASE_DATE = '2024-11-08 17:26:04'; /** * @var int */