From bdf03dc74c9f0487d759961c71f0b8cb2b973d07 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:55 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated SetTypeToCastRector --- .../Rector/FuncCall/SetTypeToCastRector.php | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 rules/CodeQuality/Rector/FuncCall/SetTypeToCastRector.php diff --git a/rules/CodeQuality/Rector/FuncCall/SetTypeToCastRector.php b/rules/CodeQuality/Rector/FuncCall/SetTypeToCastRector.php deleted file mode 100644 index c95361ba6dc..00000000000 --- a/rules/CodeQuality/Rector/FuncCall/SetTypeToCastRector.php +++ /dev/null @@ -1,69 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [Expression::class]; - } - - /** - * @param Expression $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it handles a niche settype() use case that is not part of the PHP upgrade path', - self::class - )); - } -}