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 */