Use renameNodeWithMap when necessary

This commit is contained in:
Gabriel Caruso 2017-12-25 19:14:53 -02:00
parent 803bf51c68
commit e7c1d38cef
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ final class AssertTrueFalseInternalTypeToSpecificMethodRector extends AbstractRe
private function renameMethod(MethodCall $methodCallNode): void
{
$this->methodNameChanger->renameNode($methodCallNode, $this->renameMethodsMap);
$this->methodNameChanger->renameNodeWithMap($methodCallNode, $this->renameMethodsMap);
}
private function moveFunctionArgumentsUp(MethodCall $methodCallNode): void

View File

@ -79,7 +79,7 @@ final class AssertTrueIssetToObjectHasAttributeRector extends AbstractRector
public function refactor(Node $methodCallNode): ?Node
{
// rename method
$this->methodNameChanger->renameNode($methodCallNode, $this->renameMethodsMap);
$this->methodNameChanger->renameNodeWithMap($methodCallNode, $this->renameMethodsMap);
// move isset to property and object
/** @var Isset_ $issetNode */