Skip to content
Permalink
Browse files

Don’t try to fix missing trait method params

Fixes #2427
  • Loading branch information
muglug committed Dec 10, 2019
1 parent b3cf9d3 commit 2e322ee2144ae50a9af9efd73e627b38c18a1757
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/Codebase/ClassLikes.php
@@ -1966,6 +1966,10 @@ private function findPossibleMethodParamTypes(ClassLikeStorage $classlike_storag
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

0 comments on commit 2e322ee

Please sign in to comment.
You can’t perform that action at this time.