Skip to content

Commit b737d10

Browse files
authored
Merge pull request #308 from samsonasik/direct-is-name
Directly use ->isName() on RemoveIntermediaryMethodRector
2 parents 0f84083 + d92d5e4 commit b737d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rector/Rector/MethodCall/RemoveIntermediaryMethodRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function matchTypeAndMethodName(MethodCall $methodCall): ?RemoveIntermed
102102
if (! $rootMethodCall->var instanceof Variable) {
103103
return null;
104104
}
105-
if (! $this->nodeNameResolver->isName($rootMethodCall->var, 'this')) {
105+
if (! $this->isName($rootMethodCall->var, 'this')) {
106106
return null;
107107
}
108108
/** @var \PhpParser\Node\Expr\MethodCall $var */

0 commit comments

Comments
 (0)