From d92d5e4afab8b370fe580dea592298eea7dc8273 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 13 May 2025 00:23:12 +0700 Subject: [PATCH] Directly use ->isName() on RemoveIntermediaryMethodRector --- src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */