Updated Rector to commit d9b64c78e33ef461605ac08578c8159b01839c98

d9b64c78e3 Fixes for ArrayDimFetchToMethodCallRector (#5727)
This commit is contained in:
Tomas Votruba 2024-03-16 09:11:08 +00:00
parent 9ab2b8bc07
commit d5d197b9bf
2 changed files with 6 additions and 6 deletions

View File

@ -46,12 +46,12 @@ CODE_SAMPLE
if (!$node->var instanceof Variable) { if (!$node->var instanceof Variable) {
return null; return null;
} }
if (!$node->dim instanceof Node) {
return null;
}
foreach ($this->arrayDimFetchToMethodCalls as $arrayDimFetchToMethodCall) { foreach ($this->arrayDimFetchToMethodCalls as $arrayDimFetchToMethodCall) {
if (!$node->dim instanceof Node) {
return null;
}
if (!$this->isObjectType($node->var, new ObjectType($arrayDimFetchToMethodCall->getClass()))) { if (!$this->isObjectType($node->var, new ObjectType($arrayDimFetchToMethodCall->getClass()))) {
return null; continue;
} }
return new MethodCall($node->var, $arrayDimFetchToMethodCall->getMethod(), [new Arg($node->dim)]); return new MethodCall($node->var, $arrayDimFetchToMethodCall->getMethod(), [new Arg($node->dim)]);
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'd1ed5f03202cb9325f861ac7b8c1976173b45826'; public const PACKAGE_VERSION = 'd9b64c78e33ef461605ac08578c8159b01839c98';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-03-16 08:26:52'; public const RELEASE_DATE = '2024-03-16 16:08:50';
/** /**
* @var int * @var int
*/ */