-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Clarification on the return type of Collection::getKeys() and Collection::getValues() #242
Comments
Hi, I don't see anything wrong in there. Keep in mind that |
@drupol they are not equivalent. Example: There is indeed nothing "wrong" in existing annotations, but |
Ooh ! Nice catch, thanks for the clarification, I didn't know :-) |
collections/lib/Doctrine/Common/Collections/Collection.php
Lines 118 to 136 in a4504c7
The above specifies that those method return
T[]
. However,ArrayCollection
actually returnslist<T>
(see documentation on list type). Is it unintentional, or are implementations actually allowed to return sparse arrays from those methods?The text was updated successfully, but these errors were encountered: