mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-13 14:42:23 +00:00
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();
|
$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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user