Skip to content

Commit 87c89df

Browse files
authored
Merge pull request #51 from phpbb/paul999-patch-1
Ignore PHPParser_Node_Expr_Variable
2 parents 219151f + c4bbfd4 commit 87c89df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tests/Tests/epv_test_validate_php_functions.php

+1-1
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)