8000 [String] Fixed pluralize "coupon" · symfony/symfony@751bd2c · GitHub
[go: up one dir, main page]

Skip to content

Commit 751bd2c

Browse files
committed
[String] Fixed pluralize "coupon"
1 parent 827cf0a commit 751bd2c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/String/Inflector/EnglishInflector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ final class EnglishInflector implements InflectorInterface
226226
// bacteria (bacterium), criteria (criterion), phenomena (phenomenon)
227227
['noi', 3, true, true, 'ions'],
228228

229+
// coupon (coupons)
230+
['nopuoc', 6, true, true, 'coupons'],
231+
229232
// seasons (season), treasons (treason), poisons (poison), lessons (lesson)
230233
['nos', 3, true, true, 'sons'],
231234

src/Symfony/Component/String/Tests/EnglishInflectorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public function pluralizeProvider()
201201
['crisis', 'crises'],
202202
['criteria', 'criterion'],
203203
['cup', 'cups'],
204+
['coupon', 'coupons'],
204205
['data', 'data'],
205206
['day', 'days'],
206207
['disco', 'discos'],

0 commit comments

Comments
 (0)
0