Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 18, 2026

I think this is the 3rd time this week, which made me think that I need #4766 to implement some other stuff.

Lets see how you feel about it :-)

Comment on lines -3346 to -3355
$types = [
new ArrayType(new MixedType(), new MixedType()),
new ObjectType(ArrayAccess::class),
new NullType(),
];
if ($dimType->isInteger()->yes()) {
$types[] = new StringType();
}
$offsetValueType = TypeCombinator::intersect($exprVarType, TypeCombinator::union(...$types));

Copy link
Contributor Author

@staabm staabm Jan 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the actual change is here.

I am not sure why this no longer makes a difference.. maybe related to Type->setExistingOffset() and friends

Comment on lines -79 to -82
if ($type instanceof CompoundType) {
return $type->isAcceptedBy($this, $strictTypes);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is #4766 which makes sense on its own

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant