Open M1ke opened 3 years ago
Originally posted by @M1ke in https://github.com/vimeo/psalm/discussions/5457
https://psalm.dev/r/1c3999b349
Whilst trying to work out how to denote the type of an expanding object-like-array I ran into this issue (see Psalm bot below).
Having posted it as a discussion it was suggested that Psalm should likely handle this situation, so here we are!
I found these snippets:
I think the error correct in the example provided since T is mixed, however, the error still stand:
T
https://psalm.dev/r/3d6101b3fb
Originally posted by @M1ke in https://github.com/vimeo/psalm/discussions/5457
https://psalm.dev/r/1c3999b349
Whilst trying to work out how to denote the type of an expanding object-like-array I ran into this issue (see Psalm bot below).
Having posted it as a discussion it was suggested that Psalm should likely handle this situation, so here we are!