From 2d231b646694aa33b17033a25f4c1849c52f0c60 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 7 Jul 2024 16:15:29 +0000 Subject: [PATCH] Updated Rector to commit 2f86b39349f1bbd76de8bde10e4cb24bd019744e https://github.com/rectorphp/rector-src/commit/2f86b39349f1bbd76de8bde10e4cb24bd019744e [Php82] Handle has only readonly properties but not all promoted property on ReadOnlyClassRector (#6129) --- rules/Php82/Rector/Class_/ReadOnlyClassRector.php | 4 ++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rules/Php82/Rector/Class_/ReadOnlyClassRector.php b/rules/Php82/Rector/Class_/ReadOnlyClassRector.php index b6340dee1cd..a4d64529b9a 100644 --- a/rules/Php82/Rector/Class_/ReadOnlyClassRector.php +++ b/rules/Php82/Rector/Class_/ReadOnlyClassRector.php @@ -261,8 +261,8 @@ private function shouldSkipClass(Class_ $class) : bool private function shouldSkipParams(array $params) : bool { foreach ($params as $param) { - // has non-property promotion, skip - if (!$this->visibilityManipulator->hasVisibility($param, Visibility::READONLY)) { + // has non-readonly property promotion + if (!$this->visibilityManipulator->hasVisibility($param, Visibility::READONLY) && $param->flags !== 0) { return \true; } // type is missing, invalid syntax diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index ad959b49d9b..68c74438e91 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 = '18ad257a10325cb75dd0080971ddda000c65b4b9'; + public const PACKAGE_VERSION = '2f86b39349f1bbd76de8bde10e4cb24bd019744e'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-07-07 00:30:11'; + public const RELEASE_DATE = '2024-07-07 23:13:08'; /** * @var int */