From 5a83cd2663cc00f3cc74e58763548f26d1bead08 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:54:04 +0100 Subject: [PATCH] [CodeQuality] Remove deprecated ObjectExplicitBoolCompareRector --- .../If_/ObjectExplicitBoolCompareRector.php | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 rules/CodeQuality/Rector/If_/ObjectExplicitBoolCompareRector.php 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 - )); - } -}