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
groupBy('status') returns int|string for TKey. I think that's acceptable, because Larastan doesn't know what status is. It probably could, but that's not the point. After that, I want to count how many records per group: ->map->count() so TValue should be int, and Larastan does that. But it also makes TKey int! Why would it go from int|string to int? The keys haven't changed from the higher-order-map.
The inner collection of $groups is int key 👍 because of the groupBy(). Maybe that's why the outer collection becomes int after map->count()? I'm just guessing.
The text was updated successfully, but these errors were encountered:
Description
groupBy('status')
returnsint|string
for TKey. I think that's acceptable, because Larastan doesn't know whatstatus
is. It probably could, but that's not the point. After that, I want to count how many records per group:->map->count()
so TValue should be int, and Larastan does that. But it also makes TKey int! Why would it go fromint|string
toint
? The keys haven't changed from the higher-order-map.Laravel code where the issue was found
The inner collection of
$groups
isint
key 👍 because of thegroupBy()
. Maybe that's why the outer collection becomesint
aftermap->count()
? I'm just guessing.The text was updated successfully, but these errors were encountered: