diff --git a/rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php b/rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php index 8d730a27492..073eb09aa25 100644 --- a/rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php +++ b/rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php @@ -46,12 +46,12 @@ CODE_SAMPLE if (!$node->var instanceof Variable) { return null; } + if (!$node->dim instanceof Node) { + return null; + } foreach ($this->arrayDimFetchToMethodCalls as $arrayDimFetchToMethodCall) { - if (!$node->dim instanceof Node) { - return null; - } if (!$this->isObjectType($node->var, new ObjectType($arrayDimFetchToMethodCall->getClass()))) { - return null; + continue; } return new MethodCall($node->var, $arrayDimFetchToMethodCall->getMethod(), [new Arg($node->dim)]); } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 92f2e3a763e..e6dabaa74c0 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'd1ed5f03202cb9325f861ac7b8c1976173b45826'; + public const PACKAGE_VERSION = 'd9b64c78e33ef461605ac08578c8159b01839c98'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-03-16 08:26:52'; + public const RELEASE_DATE = '2024-03-16 16:08:50'; /** * @var int */