mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-06 15:41:59 +00:00
No need to pass args on empty args
This commit is contained in:
parent
9806f6c564
commit
5719cdaab2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user