Skip to content

Commit

Permalink
Merge pull request #51 from phpbb/paul999-patch-1
Browse files Browse the repository at this point in the history
Ignore  PHPParser_Node_Expr_Variable
  • Loading branch information
Derky authored Oct 17, 2016
2 parents 219151f + c4bbfd4 commit 87c89df
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 87c89df

Please sign in to comment.