Skip to content

Commit

Permalink
Only prevent AbstractMethodCall on direct calls
Browse files Browse the repository at this point in the history
Fixes #3007
  • Loading branch information
muglug committed Mar 23, 2020
1 parent 2043e85 commit eeed5ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ function (PhpParser\Node\Arg $arg) {

if ($method_storage) {
if ($method_storage->abstract
&& $stmt->class instanceof PhpParser\Node\Name
&& (!$context->self
|| !\Psalm\Internal\Analyzer\TypeAnalyzer::isContainedBy(
$codebase,
Expand Down

0 comments on commit eeed5ec

Please sign in to comment.