From 3c86a2e54e0a866786be6f2b8cf3731494b43303 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:47 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated InnerFunctionToPrivateMethodRector --- .../InnerFunctionToPrivateMethodRector.php | 78 ------------------- 1 file changed, 78 deletions(-) delete mode 100644 rules/CodeQuality/Rector/Class_/InnerFunctionToPrivateMethodRector.php diff --git a/rules/CodeQuality/Rector/Class_/InnerFunctionToPrivateMethodRector.php b/rules/CodeQuality/Rector/Class_/InnerFunctionToPrivateMethodRector.php deleted file mode 100644 index b676968f69a..00000000000 --- a/rules/CodeQuality/Rector/Class_/InnerFunctionToPrivateMethodRector.php +++ /dev/null @@ -1,78 +0,0 @@ -inner(); - } - - private function inner(): void - { - echo 'hello'; - } -} -CODE_SAMPLE - ), - ] - ); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [Class_::class]; - } - - /** - * @param Class_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it is a niche change that can alter behavior in undesired ways and needs a human check', - self::class - )); - } -}