Skip to content
Discussion options

You must be logged in to vote

Yeah, it definitely should narrow based on which parts of the union match based on getArraySize.

Right now PHPStan has some logic about changing list<string> into array{string, string, string} when asked about count() === 3 so this could be implemented somewhere near that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@staabm
Comment options

staabm Aug 7, 2024
Collaborator Author

Answer selected by staabm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants