diff --git a/rules/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector.php b/rules/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector.php deleted file mode 100644 index 16e1249f39e..00000000000 --- a/rules/Naming/Rector/Assign/RenameVariableToMatchMethodCallReturnTypeRector.php +++ /dev/null @@ -1,77 +0,0 @@ -getRunner(); - } - - public function getRunner(): Runner - { - return new Runner(); - } -} -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -class SomeClass -{ - public function run() - { - $runner = $this->getRunner(); - } - - public function getRunner(): Runner - { - return new Runner(); - } -} -CODE_SAMPLE - ), - ]); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [ClassMethod::class, Closure::class, Function_::class]; - } - - /** - * @param ClassMethod|Closure|Function_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it is risky and can clobber meaningful local variable names', - self::class - )); - } -}