diff --git a/rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php b/rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php deleted file mode 100644 index 421b19efbc0..00000000000 --- a/rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php +++ /dev/null @@ -1,75 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [Empty_::class, BooleanNot::class]; - } - - /** - * @param Empty_|BooleanNot $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, use ExplicitNullableObjectInstanceRector instead', - self::class - )); - } -}