8000 [2.0] Use null instead of false on failure · Issue #190 · doctrine/collections · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[2.0] Use null instead of false on failure #190
Open
@enumag

Description

@enumag

I noticed that some methods of Collection return false on failure. Specifically first(), last(), current(), next() and indexOf(). It would be better in my opinion to return null 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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0