Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Feb 3, 2026

No description provided.

$this,
new ArrayType(
TypeCombinator::intersect(
$this->keyType->toArrayKey(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

my thinking is that $this->keyType->toArrayKey() should already by definition return a subtype of int|string

@staabm staabm marked this pull request as ready for review February 3, 2026 06:18
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

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.

2 participants