@@ -3485,6 +3485,70 @@ public static function dataIntersect(): iterable
34853485 ConstantArrayType::class,
34863486 'array{string}',
34873487 ],
3488+ [
3489+ [
3490+ new ConstantArrayType([
3491+ new ConstantIntegerType(0),
3492+ new ConstantIntegerType(1),
3493+ ], [
3494+ new StringType(),
3495+ new StringType(),
3496+ ], optionalKeys: [0, 1], isList: TrinaryLogic::createYes()),
3497+ new NonEmptyArrayType(),
3498+ ],
3499+ ConstantArrayType::class,
3500+ 'array{0: string, 1?: string}',
3501+ ],
3502+ [
3503+ [
3504+ new ConstantArrayType([
3505+ new ConstantIntegerType(0),
3506+ new ConstantIntegerType(1),
3507+ new ConstantIntegerType(2),
3508+ new ConstantIntegerType(3),
3509+ ], [
3510+ new StringType(),
3511+ new StringType(),
3512+ new StringType(),
3513+ new StringType(),
3514+ ], nextAutoIndexes: [3], optionalKeys: [0, 1, 2, 3], isList: TrinaryLogic::createYes()),
3515+ new NonEmptyArrayType(),
3516+ ],
3517+ ConstantArrayType::class,
3518+ 'list{0: string, 1?: string, 2?: string, 3?: string}',
3519+ ],
3520+ [
3521+ [
3522+ new ConstantArrayType([
3523+ new ConstantIntegerType(0),
3524+ new ConstantIntegerType(1),
3525+ ], [
3526+ new StringType(),
3527+ new StringType(),
3528+ ], optionalKeys: [0, 1]),
3529+ new NonEmptyArrayType(),
3530+ ],
3531+ IntersectionType::class,
3532+ 'non-empty-array{0?: string, 1?: string}',
3533+ ],
3534+ [
3535+ [
3536+ new ConstantArrayType([
3537+ new ConstantIntegerType(0),
3538+ new ConstantIntegerType(1),
3539+ new ConstantIntegerType(2),
3540+ new ConstantIntegerType(3),
3541+ ], [
3542+ new StringType(),
3543+ new StringType(),
3544+ new StringType(),
3545+ new StringType(),
3546+ ], [3], [0, 1, 2, 3], TrinaryLogic::createYes()),
3547+ new NonEmptyArrayType(),
3548+ ],
3549+ ConstantArrayType::class,
3550+ 'list{0: string, 1?: string, 2?: string, 3?: string}',
3551+ ],
34883552 [
34893553 [
34903554 new ConstantArrayType([], []),
0 commit comments