Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix not null get collection key types#41582
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Fix not null get collection key types#41582
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ogizanagi left a comment
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.
Was missed in#41463? LGTM
Could you add a test, though?
dragosprotung commentedJun 7, 2021
I would add a test if I could even begin to know how to write a test for it. It's too deep into a private method and do not really know how to set it up |
nicolas-grekas commentedJun 8, 2021
Maybe you can take inspiration from the tests added to#41463? |
dragosprotung commentedJun 8, 2021
In#41463 there was no test added for the |
nicolas-grekas commentedJun 8, 2021
Thank you@dragosprotung. |
Warning: Undefined array key 0is generated becausegetCollectionKeyTypesnever returnsnullso a check against empty array is needed.