Replies: 1 comment 1 reply
-
Wouldn't that be Besides, model IDs aren't always integers. Maybe, this should be generic 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I often use chain call of methods
->values()->all()
to obtain list of values from Collection. But PhpStan still complains that return typearray<int, int> might not be a list
. It would be really helpful tu just have method->list()
or->listAll()
, that would just call both of those methods and have correctly typed return value aslist<TValue>
.PhpStan will complain
Best solution would be:
Beta Was this translation helpful? Give feedback.
All reactions