Skip to content

Make getEntry() and getProperty() work with objects #6

Description

@gmazzap

Both functions getEntry() and getProperty() work by now only with arrays (or ArrayAccess instances) but not with object, even if getProperty() make me think of an object field access.

Moreover, both functions are very similar, acually as of now getProperty() is just a subset of getEntry() I think one should be removed. This is a BC break, but being this lib in a zero-point release state, that should not be a problem.

Finally, getProperty() return an unexpected null when given argument is an array, IMO in that case the function should throw an exception instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions