From 1288163dc3edc367eca3d904325fd6b1cdf479ac Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:54:15 +0100 Subject: [PATCH] [TypeDeclaration] Remove deprecated EmptyOnNullableObjectToInstanceOfRector --- ...mptyOnNullableObjectToInstanceOfRector.php | 75 ------------------- 1 file changed, 75 deletions(-) delete mode 100644 rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php 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 - )); - } -}