From c520a887336744d6427cbc25e964acb04b684008 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 2 Dec 2023 13:42:50 +0000 Subject: [PATCH] Updated Rector to commit cd9ea2c717511f81e7bb7298a62f8ea558441a37 https://github.com/rectorphp/rector-src/commit/cd9ea2c717511f81e7bb7298a62f8ea558441a37 [Privatization] Fix first class callable in PrivatizeLocalGetterToPropertyRector (#5310) --- .../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 8d95667f56d..e4b631f39d8 100644 --- a/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php +++ b/rules/Privatization/Rector/MethodCall/PrivatizeLocalGetterToPropertyRector.php @@ -73,6 +73,9 @@ CODE_SAMPLE if (!$node instanceof MethodCall) { return null; } + if ($node->isFirstClassCallable()) { + return null; + } if (!$node->var instanceof Variable) { return null; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 6babe7b530b..9686f79a9e7 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 = 'aac9573e0ef040c236a569a9cbbe965af61ab0b8'; + public const PACKAGE_VERSION = 'cd9ea2c717511f81e7bb7298a62f8ea558441a37'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-12-02 15:56:28'; + public const RELEASE_DATE = '2023-12-02 13:40:42'; /** * @var int */