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

Skip to content

EnglishInflector incorrectly pluralizes "coupon" #40467

Closed
@lexmes

Description

@lexmes

Symfony version(s) affected: 5.1.2

Description
The Symfony\Component\String\Inflector\EnglishInflector incorrectly pluralizes the string "coupon" to "coupa". English is not my first language and i've never heard the word "coupa" before. I've searched for the plural version of coupon and didn't find "coupa" anywhere.

How to reproduce
With these two lines the problem should be reproducable:

$inflector = new EnglishInflector();
$plural = $inflector->pluralize( "coupon" )[ 0 ];
echo $plural; // echoes "coupa"

Additional context
symfony/string 5.1.2

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