mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
Updated Rector to commit de7b0526ad03b6e2ecc47d28eb8c8e0e5224152a
de7b0526ad
[TypeDeclaration] Handle return by array shape type on AddArrowFunctionReturnTypeRector (#5815)
This commit is contained in:
parent
f53efcffe8
commit
0c2b95ea62
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user