mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-26 04:32:36 +01:00
Use renameNodeWithMap when necessary
This commit is contained in:
parent
803bf51c68
commit
e7c1d38cef
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user