-
-
Notifications
You must be signed in to change notification settings - Fork 947
PHPStan found error: "expects TKey of (int|string), int|string given" #8268
Copy link
Copy link
Open
Description
Bug report
I've wanted to work with a generic Collection who use an internal array, but PHPStan show error:
expects TKey of (int|string), int|string given.
Which is really bugging me and I can't understand what doesn't work...
Code snippet that reproduces the problem
Expected output
I thing PHPStan should not show any error there...
Did PHPStan help you today? Did it make you happy in any way?
PHPStan help me a lot of the time to find error before merging, that's a very nice tool!, If it's support as much options as psalm it would be perfect (just messing around 🙃Don't worry PHPStan is still amazing 👍)
Reactions are currently unavailable