From 0d8881ecb38a569bf7e3304514bdafc114bca078 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 16 Feb 2024 14:42:02 +0000 Subject: [PATCH] Updated Rector to commit 39d9c321b99b58ebe32131f08e42cfa4b517ed79 https://github.com/rectorphp/rector-src/commit/39d9c321b99b58ebe32131f08e42cfa4b517ed79 [Php83] Early check private method in child before check parent on AddOverrideAttributeToOverriddenMethodsRector (#5622) --- .../AddOverrideAttributeToOverriddenMethodsRector.php | 3 +++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php b/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php index 9e279e61cc8..2195d948419 100644 --- a/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php +++ b/rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php @@ -127,6 +127,9 @@ CODE_SAMPLE if ($classMethod->name->toString() === '__construct') { continue; } + if ($classMethod->isPrivate()) { + continue; + } // ignore if it already uses the attribute if ($this->phpAttributeAnalyzer->hasPhpAttribute($classMethod, 'Override')) { continue; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 715b77feede..758afbb0661 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 = '1.0.1'; + public const PACKAGE_VERSION = '39d9c321b99b58ebe32131f08e42cfa4b517ed79'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-15 13:49:53'; + public const RELEASE_DATE = '2024-02-16 21:39:02'; /** * @var int */