Updated Rector to commit 8038ee15844b7753e5698bd42b62669d9ebca12b

8038ee1584 [TypeDeclaration] Skip possible returns false on ReturnTypeFromStrictNewArrayRector (#5654)
This commit is contained in:
Tomas Votruba 2024-02-21 20:27:59 +00:00
parent 9ae89c0674
commit e8568e6d97
2 changed files with 5 additions and 5 deletions

View File

@ -104,13 +104,13 @@ final class GenericClassStringTypeNormalizer
} }
$keyType = $unionType->getKeyType(); $keyType = $unionType->getKeyType();
$itemType = $unionType->getItemType(); $itemType = $unionType->getItemType();
if (!$keyType instanceof MixedType && !$keyType instanceof ConstantIntegerType) {
return $type;
}
if ($itemType instanceof ArrayType) { if ($itemType instanceof ArrayType) {
$arrayType = new ArrayType(new MixedType(), new MixedType()); $arrayType = new ArrayType(new MixedType(), new MixedType());
return new ArrayType($keyType, $arrayType); return new ArrayType($keyType, $arrayType);
} }
if (!$keyType instanceof MixedType && !$keyType instanceof ConstantIntegerType) {
return $type;
}
if (!$itemType instanceof ClassStringType) { if (!$itemType instanceof ClassStringType) {
return $type; return $type;
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '6095e3216f057fbf8dded18cf982bfab034f8086'; public const PACKAGE_VERSION = '8038ee15844b7753e5698bd42b62669d9ebca12b';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-02-22 02:52:54'; public const RELEASE_DATE = '2024-02-22 03:25:47';
/** /**
* @var int * @var int
*/ */