simpler if [ci skip]

This commit is contained in:
TomasVotruba 2017-10-23 11:11:46 +02:00
parent 92ad0aea22
commit 22a4862a65

View File

@ -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);