From e2d9fbeae3444fd88327715367ae79c490d8ddeb Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 11:26:56 +0100 Subject: [PATCH] [Php70] Remove deprecated ListSwapArrayOrderRector --- .../Assign/ListSwapArrayOrderRector.php | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 rules/Php70/Rector/Assign/ListSwapArrayOrderRector.php diff --git a/rules/Php70/Rector/Assign/ListSwapArrayOrderRector.php b/rules/Php70/Rector/Assign/ListSwapArrayOrderRector.php deleted file mode 100644 index 6f36e9a300d..00000000000 --- a/rules/Php70/Rector/Assign/ListSwapArrayOrderRector.php +++ /dev/null @@ -1,53 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [Assign::class]; - } - - /** - * @param Assign $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it can turn valid code into broken code', - self::class - )); - } - - public function provideMinPhpVersion(): int - { - return PhpVersion::PHP_70; - } -}