You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This PR was merged into the 4.4 branch.
Discussion
----------
[Inflector][String] Fixed pluralize "coupon"
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#40467
| License | MIT
| Doc PR |
The rule for "bacteria (bacterium), criteria (criterion), phenomena (phenomenon)" is producing this behaviour. I added an exception to the "criterion exception".
"coupon" is an old French word, that is maybe why it does not follow the classic "on" rule... I dont know. The test passes and I dont think I've added any side-effects.
This is also my first time working with the `EnglishInflector`.
Commits
-------
d3412e9 [Inflector] Fixed pluralize "coupon"
This bug has been patched in 4.4 and will be merged up to 5.2 and 5.x to be released in the next patch version. Note that 5.1 is EOL and will not be updated.
Uh oh!
There was an error while loading. Please reload this page.
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:
Additional context
symfony/string 5.1.2
The text was updated successfully, but these errors were encountered: