diff --git a/rules/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector.php b/rules/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector.php deleted file mode 100644 index 02073c7c584..00000000000 --- a/rules/CodeQuality/Rector/Foreach_/ForeachItemsAssignToEmptyArrayToAssignRector.php +++ /dev/null @@ -1,71 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return NodeGroup::STMTS_AWARE; - } - - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as the foreach re-indexes keys from 0 while direct assign keeps original keys, which can create risky situations', - self::class - )); - } -}