From bf9ec08bc8253021cf9f7c227a53452f8a9b4c43 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:39 +0100 Subject: [PATCH] [CodingStyle] Remove deprecated PostIncDecToPreIncDecRector --- .../PostInc/PostIncDecToPreIncDecRector.php | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php diff --git a/rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php b/rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php deleted file mode 100644 index 57bf85edfc3..00000000000 --- a/rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php +++ /dev/null @@ -1,71 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [For_::class, Expression::class]; - } - - /** - * @param For_|Expression $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it is a cosmetic coding-style preference better handled by a coding standard tool', - self::class - )); - } -}