Skip to content

[PropertyAccessor] Behavior of getValue #9747

Closed
@nicolaspetitjean

Description

@nicolaspetitjean

Hey !
I was reading that doc, and it says:

As you can see, the method will return null if the index does not exists.

I think the doc could mention that the behavior of PropertyAccessor::getValue can be configured, meaning if an index is missing, an exception can be thrown (see 27187).

$accessor = new PropertyAccessor(false, true, null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    PropertyAccesshasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions