From 8ce31a1eccee56ba9e448683bf9ec0628f05e0b1 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 9 Jun 2017 17:35:59 -0700 Subject: [PATCH] Comment should call out scoped property call --- src/DefinitionResolver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DefinitionResolver.php b/src/DefinitionResolver.php index 7650a72..32defab 100644 --- a/src/DefinitionResolver.php +++ b/src/DefinitionResolver.php @@ -623,9 +623,9 @@ class DefinitionResolver } } - // MEMBER CALL EXPRESSION - // The type of the member call expression is the type of the method, so resolve the - // type of the member access expression. + // MEMBER CALL EXPRESSION/SCOPED PROPERTY CALL EXPRESSION + // The type of the member/scoped property call expression is the type of the method, so resolve the + // type of the callable expression. if ($expr instanceof Node\Expression\CallExpression && ( $expr->callableExpression instanceof Node\Expression\MemberAccessExpression || $expr->callableExpression instanceof Node\Expression\ScopedPropertyAccessExpression)