Updated Rector to commit de7b0526ad03b6e2ecc47d28eb8c8e0e5224152a

de7b0526ad [TypeDeclaration] Handle return by array shape type on AddArrowFunctionReturnTypeRector (#5815)
This commit is contained in:
Tomas Votruba 2024-04-10 10:22:01 +00:00
parent f53efcffe8
commit 0c2b95ea62
2 changed files with 5 additions and 5 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '1d2d51e20ce11d0f603e42bd8869c1ab6d2a52cc';
public const PACKAGE_VERSION = 'de7b0526ad03b6e2ecc47d28eb8c8e0e5224152a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-04-10 03:35:14';
public const RELEASE_DATE = '2024-04-10 17:19:25';
/**
* @var int
*/

View File

@ -332,11 +332,11 @@ final class NodeTypeResolver
return $type;
}
$optionalKeys = $variableType->getOptionalKeys();
foreach ($variableType->getKeyTypes() as $key => $type) {
if (!$type instanceof ConstantStringType) {
foreach ($variableType->getKeyTypes() as $key => $keyType) {
if (!$keyType instanceof ConstantStringType) {
continue;
}
if ($type->getValue() !== $arrayDimFetch->dim->value) {
if ($keyType->getValue() !== $arrayDimFetch->dim->value) {
continue;
}
if (!\in_array($key, $optionalKeys, \true)) {