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 - )); - } -}