No need to pass args on empty args

This commit is contained in:
sashabeton 2019-08-12 15:18:46 +03:00
parent 9806f6c564
commit 5719cdaab2

View File

@ -233,7 +233,7 @@ CODE_SAMPLE
if (count($node->args) === 0) {
if (isset($service['method_if_no_args'])) {
return new MethodCall($propertyFetchNode, $service['method_if_no_args'], $node->args);
return new MethodCall($propertyFetchNode, $service['method_if_no_args']);
}
return $propertyFetchNode;