From 02071e988a9f1bc6ac78ecf7b0e574562751ebda Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Wed, 27 Nov 2019 00:53:39 +0100 Subject: [PATCH] fix var type on method call --- packages/CakePHP/src/Rector/MethodCall/ModalToGetSetRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/CakePHP/src/Rector/MethodCall/ModalToGetSetRector.php b/packages/CakePHP/src/Rector/MethodCall/ModalToGetSetRector.php index 51820ca482f..e86e58a9444 100644 --- a/packages/CakePHP/src/Rector/MethodCall/ModalToGetSetRector.php +++ b/packages/CakePHP/src/Rector/MethodCall/ModalToGetSetRector.php @@ -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; }