From 21b607aa970e4450f9640bc4541e6347ff6790e2 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 24 Nov 2024 10:16:45 +0000 Subject: [PATCH] Revert 44f9440664554224e2c82f0e38e2eff71f7e38c7 --- src/Psalm/Internal/Codebase/Methods.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Psalm/Internal/Codebase/Methods.php b/src/Psalm/Internal/Codebase/Methods.php index 71739ce5e51..f4c8f159f9c 100644 --- a/src/Psalm/Internal/Codebase/Methods.php +++ b/src/Psalm/Internal/Codebase/Methods.php @@ -453,13 +453,6 @@ public function getMethodParams( foreach ($params as $i => $param) { if (isset($overridden_storage->params[$i]->type) && $overridden_storage->params[$i]->has_docblock_type - && ( - ! $param->type - || $param->type->equals( - $overridden_storage->params[$i]->signature_type - ?? $overridden_storage->params[$i]->type, - ) - ) ) { $params[$i] = clone $param; /** @var Union $params[$i]->type */