Skip to content
Discussion options

You must be logged in to vote

ArrayAccess has generics where you can specify the type of keys and the type of values. It cannot be used as an array shape.
I think this can be solved in some way, but I'm not sure if it's a good idea: https://phpstan.org/r/c2eab2d8-98a9-4f08-838e-3f39c8696609

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nyamsprod
Comment options

You must be logged in to vote
2 replies
@mspirkov
Comment options

@nyamsprod
Comment options

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