From b924bc469bd4f4fea2265e58aec0d8e3d842d5b6 Mon Sep 17 00:00:00 2001 From: Thomas Gnandt Date: Mon, 8 Jan 2024 10:54:38 +0100 Subject: [PATCH] remove unnecessary null check --- .../Deprecations/InheritanceOfDeprecatedInterfaceRule.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Rules/Deprecations/InheritanceOfDeprecatedInterfaceRule.php b/src/Rules/Deprecations/InheritanceOfDeprecatedInterfaceRule.php index 8acab06..c47fb89 100644 --- a/src/Rules/Deprecations/InheritanceOfDeprecatedInterfaceRule.php +++ b/src/Rules/Deprecations/InheritanceOfDeprecatedInterfaceRule.php @@ -31,10 +31,6 @@ public function getNodeType(): string public function processNode(Node $node, Scope $scope): array { - if ($node->extends === null) { - return []; - } - $interfaceName = isset($node->namespacedName) ? (string) $node->namespacedName : (string) $node->name;