-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
[2.0] Use null instead of false on failure #190
Comments
Returning |
What is the status of this issue? I'm willing to implement it if needed. |
I'm not aware that anyone is working on this issue, so feel free to do so. |
A try has been given leading to a discussion |
Maybe a year later we could revisit this issue, or does the team still have the same opinion? This is one of my only gripes with Doctrine, always having to use |
My opinion hasn't changed: #362 (comment) |
I noticed that some methods of
Collection
returnfalse
on failure. Specificallyfirst()
,last()
,current()
,next()
andindexOf()
. It would be better in my opinion to returnnull
instead.Since this is a BC break I'd like to propose this for doctrine/collections 2.0.
c3564a6
(Of course all
Collection
implementations and tests would need to be changed accordingly.)The text was updated successfully, but these errors were encountered: