1
0
Fork 0

Comment should call out scoped property call

pull/393/head
Rob Lourens 2017-06-09 17:35:59 -07:00
parent 99908b598a
commit 8ce31a1ecc
1 changed files with 3 additions and 3 deletions

View File

@ -623,9 +623,9 @@ class DefinitionResolver
} }
} }
// MEMBER CALL EXPRESSION // MEMBER CALL EXPRESSION/SCOPED PROPERTY CALL EXPRESSION
// The type of the member call expression is the type of the method, so resolve the // The type of the member/scoped property call expression is the type of the method, so resolve the
// type of the member access expression. // type of the callable expression.
if ($expr instanceof Node\Expression\CallExpression && ( if ($expr instanceof Node\Expression\CallExpression && (
$expr->callableExpression instanceof Node\Expression\MemberAccessExpression || $expr->callableExpression instanceof Node\Expression\MemberAccessExpression ||
$expr->callableExpression instanceof Node\Expression\ScopedPropertyAccessExpression) $expr->callableExpression instanceof Node\Expression\ScopedPropertyAccessExpression)