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