Merge pull request #2358 from rectorphp/modal-fix

fix var type on method call
This commit is contained in:
Tomáš Votruba 2019-11-27 00:54:04 +01:00 committed by GitHub
commit 1c5bcf31ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}