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