8000 StringUtil::singularify converts screenshot to scroonshot · Issue #18748 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
StringUtil::singularify converts screenshot to scroonshot #18748
Closed
@TakTaki

Description

@TakTaki

Hello,

I've encountered an interesting error while creating my form.
I have a collection of 'screenshot' in it, and when I submit a valid form, I have an alert saying that there's no function addScroonshot declared.

I've done a little research and I think the problem might come from StringUtil::singularify function which contains at the end:

// Convert teeth to tooth, feet to foot
if (false !== ($pos = strpos($plural, 'ee')) && strlen($plural) > 3 && 'feedback' !== $plural) {
    return substr_replace($plural, 'oo', $pos, 2);
}

Maybe I'm just wrong, and I'll appreciate your help!

Thanks!

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