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