mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 8038ee15844b7753e5698bd42b62669d9ebca12b
8038ee1584
[TypeDeclaration] Skip possible returns false on ReturnTypeFromStrictNewArrayRector (#5654)
This commit is contained in:
parent
9ae89c0674
commit
e8568e6d97
|
@ -104,13 +104,13 @@ final class GenericClassStringTypeNormalizer
|
|||
}
|
||||
$keyType = $unionType->getKeyType();
|
||||
$itemType = $unionType->getItemType();
|
||||
if (!$keyType instanceof MixedType && !$keyType instanceof ConstantIntegerType) {
|
||||
return $type;
|
||||
}
|
||||
if ($itemType instanceof ArrayType) {
|
||||
$arrayType = new ArrayType(new MixedType(), new MixedType());
|
||||
return new ArrayType($keyType, $arrayType);
|
||||
}
|
||||
if (!$keyType instanceof MixedType && !$keyType instanceof ConstantIntegerType) {
|
||||
return $type;
|
||||
}
|
||||
if (!$itemType instanceof ClassStringType) {
|
||||
return $type;
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '6095e3216f057fbf8dded18cf982bfab034f8086';
|
||||
public const PACKAGE_VERSION = '8038ee15844b7753e5698bd42b62669d9ebca12b';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-22 02:52:54';
|
||||
public const RELEASE_DATE = '2024-02-22 03:25:47';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue