Open danog opened 2 years ago
I found these snippets:
This is just missing support for intersections between templates and keyed array. The intersection in itself is ok: https://psalm.dev/r/9384c60365
This should probably not be hard to fix and we have one or two similar issues (intersection with aliased types)
I found these snippets:
Especially with v5 unsealed arrays and restrictReturnTypes this is a more common issue now
It seems this worked previously? https://github.com/vimeo/psalm/pull/3064
I find it often useful to use intersection types to enhance the keys of an array, but psalm doesn't like it: https://psalm.dev/r/125b383b8b