1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Don’t try to fix missing trait method params

Fixes #2427
This commit is contained in:
Brown 2019-12-10 17:32:39 -05:00
parent b3cf9d3958
commit 2e322ee214

View File

@ -1966,6 +1966,10 @@ class ClassLikes
continue;
}
if ($declaring_classlike_storage->is_trait) {
continue;
}
if (isset($codebase->analyzer->possible_method_param_types[strtolower($method_id)])) {
if ($method_storage->location) {
$possible_param_types