You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Psalm seems to behave incorrectly with Collection<TKey, ...> types when TKey is inferred to be int<0, n>, rather than int, 1|2|3, and a Collection<int> is requested. I lack the proper terminology/keywords to explain and search this better, so here's an example:
Psalm seems to behave incorrectly with
Collection<TKey, ...>
types whenTKey
is inferred to beint<0, n>
, rather thanint
,1|2|3
, and aCollection<int>
is requested. I lack the proper terminology/keywords to explain and search this better, so here's an example:https://psalm.dev/r/8a5261da42
In the above example, all 3 examples should probably pass the
@param Collection<int> $c
parameter type required byusesIntCollection()
.Refs
Related: doctrine/orm#11451
Related: doctrine/orm#11454
Longer explanation @ doctrine/orm#11454 (comment)
/cc @greg0ire @MatteoFeltrin
The text was updated successfully, but these errors were encountered: