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 */