We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009c486 commit f78306aCopy full SHA for f78306a
app/Parsers/MemberAccessExpressionParser.php
@@ -30,7 +30,7 @@ public function parse(MemberAccessExpression $node)
30
31
if ($child instanceof Variable) {
32
if ($child->getName() === 'this') {
33
- if ($node->getParent() instanceof CallExpression) {
+ if ($child->getParent()->getParent() instanceof CallExpression) {
34
// They are calling a method on the current class
35
$result = $this->context->nearestClassDefinition();
36
0 commit comments