Skip to content

Commit c4bbfd4

Browse files
authored
Ignore PHPParser_Node_Expr_Variable
1 parent 219151f commit c4bbfd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tests/Tests/epv_test_validate_php_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private function validateMethodCalls(PHPParser_Node $node) {
416416
$name = (string)$node->name;
417417
}
418418
}
419-
else if (isset($node->expr) && $node->expr instanceof PHPParser_Node_Expr_MethodCall)
419+
else if (isset($node->expr) && $node->expr instanceof PHPParser_Node_Expr_MethodCall && !($node->expr->name instanceof PHPParser_Node_Expr_Variable))
420420
{
421421
$name = (string)$node->expr->name;
422422
}

0 commit comments

Comments
 (0)