From c734ae66dc7e4afb4ff46109bb0fd63f1a8893af Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:50 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated ForRepeatedCountToOwnVariableRector --- .../ForRepeatedCountToOwnVariableRector.php | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 rules/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector.php diff --git a/rules/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector.php b/rules/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector.php deleted file mode 100644 index 3785137a5bc..00000000000 --- a/rules/CodeQuality/Rector/For_/ForRepeatedCountToOwnVariableRector.php +++ /dev/null @@ -1,73 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [For_::class]; - } - - /** - * @param For_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as the gain is negligible; count() on arrays is O(1)', - self::class - )); - } -}