Skip to content

Commit

Permalink
Ignore PHPParser_Node_Expr_Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
paul999 authored Oct 17, 2016
1 parent 219151f commit c4bbfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tests/Tests/epv_test_validate_php_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c4bbfd4

Please sign in to comment.