Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 253bcd7

Browse filesBrowse files
committed
[Inflector] Fixed pluralize "coupon"
1 parent 7678d62 commit 253bcd7
Copy full SHA for 253bcd7

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎src/Symfony/Component/Inflector/Inflector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Inflector/Inflector.php
+3Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Inflector/Tests/InflectorTest.php
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.