Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PropertyInfo] Singularize array mutator in ReflectionExtractor #18166

@teohhanhui

Description

@teohhanhui

ReflectionExtractor currently supports array mutators (add, remove) but it's not very useful as the singular method name is not being checked.

If we can use doctrine/inflector to singularize the property name, we'll be able to pick up a lot more useful information in many cases. I'll open a PR if this is desirable (looking at the composer.json of Symfony components, I understand that it has to be an optional dependency).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions