-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan already supports array-key as template type variable bound #274
Conversation
We are ignoring a message right now, and it just changed: - Array (array<TKey, T>) does not accept key int.
+ Array (array<TKey of (int|string), T>) does not accept key int. That's about
which is described at collections/lib/Doctrine/Common/Collections/ArrayCollection.php Lines 50 to 53 in 9491825
I don't understand why it still fails… |
I'll update the ignore, sorry. The error message tells you that if the user has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙂
🤔 didn't notice the Psalm issue, sorry! It's pre-existing it seems. |
I'll ignore it in an extra commit. |
Thanks @ondrejmirtes ! |
Thank you! |
This is a direct consequence of doctrine/collections#274
This is a direct consequence of doctrine/collections#274
It's now even counter-productive to leave
@phpstan-template
there.