mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
simpler if [ci skip]
This commit is contained in:
parent
92ad0aea22
commit
22a4862a65
@ -49,10 +49,8 @@ final class MethodResolver extends NodeVisitorAbstract
|
||||
$this->methodName = $node->name->toString();
|
||||
}
|
||||
|
||||
if ($node instanceof MethodCall) {
|
||||
if ($node->name instanceof Identifier) {
|
||||
$this->methodCall = $node->name->toString();
|
||||
}
|
||||
if ($node instanceof MethodCall && $node->name instanceof Identifier) {
|
||||
$this->methodCall = $node->name->toString();
|
||||
}
|
||||
|
||||
$node->setAttribute(Attribute::METHOD_NAME, $this->methodName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user