mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
Merge pull request #2358 from rectorphp/modal-fix
fix var type on method call
This commit is contained in:
commit
1c5bcf31ed
@ -95,7 +95,7 @@ PHP
|
||||
foreach ($this->methodNamesByTypes as $type => $methodNamesToGetAndSetNames) {
|
||||
/** @var string[] $methodNames */
|
||||
$methodNames = array_keys($methodNamesToGetAndSetNames);
|
||||
if (! $this->isObjectType($methodCall, $type)) {
|
||||
if (! $this->isObjectType($methodCall->var, $type)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user