8000 [Inflector] Fixed pluralize "coupon" · symfony/symfony@253bcd7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 253bcd7

Browse files
committed
[Inflector] Fixed pluralize "coupon"
1 parent 7678d62 commit 253bcd7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/Inflector/Inflector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ final class Inflector
231231
// bacteria (bacterium), criteria (criterion), phenomena (phenomenon)
232232
['noi', 3, true, true, 'ions'],
233233

234+
// coupon (coupons)
235+
['nopuoc', 6, true, true, 'coupons'],
236+
234237
// seasons (season), treasons (treason), poisons (poison), lessons (lesson)
235238
['nos', 3, true, true, 'sons'],
236239

src/Symfony/Component/Inflector/Tests/InflectorTest.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