diff --git a/src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php b/src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php index 6264dea7..7ebc2c17 100644 --- a/src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php +++ b/src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php @@ -102,7 +102,7 @@ private function matchTypeAndMethodName(MethodCall $methodCall): ?RemoveIntermed if (! $rootMethodCall->var instanceof Variable) { return null; } - if (! $this->nodeNameResolver->isName($rootMethodCall->var, 'this')) { + if (! $this->isName($rootMethodCall->var, 'this')) { return null; } /** @var \PhpParser\Node\Expr\MethodCall $var */