From 43470312bcad525fe6e6c91ffbef063b427ffec0 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:52 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated CallUserFuncWithArrowFunctionToInlineRector --- ...serFuncWithArrowFunctionToInlineRector.php | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php diff --git a/rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php b/rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php deleted file mode 100644 index 2619f85a577..00000000000 --- a/rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php +++ /dev/null @@ -1,66 +0,0 @@ - 100); - } -} -CODE_SAMPLE - - , - <<<'CODE_SAMPLE' -final class SomeClass -{ - public function run() - { - $result = 100; - } -} -CODE_SAMPLE - ), - ]); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [FuncCall::class]; - } - - /** - * @param FuncCall $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it handles a niche call_user_func() with arrow function case that is not part of the PHP upgrade path', - self::class - )); - } -}