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 - )); - } -}