From 4086d092b18bf6f5cf2bdcd1bc9264775578d25a Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 16 Nov 2026 17:58:50 +0100 Subject: [PATCH] [Php70] Remove deprecated StaticCallOnNonStaticToInstanceCallRector --- ...ticCallOnNonStaticToInstanceCallRector.php | 89 ------------------- 1 file changed, 89 deletions(-) delete mode 100644 rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php diff --git a/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php b/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php deleted file mode 100644 index 7562f03a319..00000000000 --- a/rules/Php70/Rector/StaticCall/StaticCallOnNonStaticToInstanceCallRector.php +++ /dev/null @@ -1,89 +0,0 @@ -doWork(); - } -} -CODE_SAMPLE - ), - ] - ); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [StaticCall::class]; - } - - /** - * @param StaticCall $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" is deprecated as risky change with little value. Use manually or custom rule where needed instead', - self::class - )); - } -}