From c4bbfd4d2226764609d81e5e24b1452c6de5a7b8 Mon Sep 17 00:00:00 2001 From: Paul Sohier Date: Mon, 17 Oct 2016 13:56:18 +0200 Subject: [PATCH] Ignore PHPParser_Node_Expr_Variable --- src/Tests/Tests/epv_test_validate_php_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/Tests/epv_test_validate_php_functions.php b/src/Tests/Tests/epv_test_validate_php_functions.php index f637af4..417c416 100644 --- a/src/Tests/Tests/epv_test_validate_php_functions.php +++ b/src/Tests/Tests/epv_test_validate_php_functions.php @@ -416,7 +416,7 @@ private function validateMethodCalls(PHPParser_Node $node) { $name = (string)$node->name; } } - else if (isset($node->expr) && $node->expr instanceof PHPParser_Node_Expr_MethodCall) + else if (isset($node->expr) && $node->expr instanceof PHPParser_Node_Expr_MethodCall && !($node->expr->name instanceof PHPParser_Node_Expr_Variable)) { $name = (string)$node->expr->name; }