8000 Fix pluralizing "season" · symfony/symfony@806a46c · GitHub
[go: up one dir, main page]

Skip to content

Commit 806a46c

Browse files
committed
Fix pluralizing "season"
1 parent 327fb95 commit 806a46c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Component/Inflector/Inflector.php

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

231+
// seasons (season)
232+
['nosaes', 6, true, true, 'seasons'],
233+
231234
// bacteria (bacterium), criteria (criterion), phenomena (phenomenon)
232235
['no', 2, true, true, 'a'],
233236

src/Symfony/Component/Inflector/Tests/InflectorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public function singularizeProvider()
124124
['sandwiches', ['sandwich', 'sandwiche']],
125125
['scarves', ['scarf', 'scarve', 'scarff']],
126126
['schemas', 'schema'], //schemata
127+
['seasons', 'season'],
127128
['selfies', 'selfie'],
128129
['series', 'series'],
129130
['services', 'service'],
@@ -254,6 +255,7 @@ public function pluralizeProvider()
254255
['sandwich', 'sandwiches'],
255256
['scarf', ['scarfs', 'scarves']],
256257
['schema', 'schemas'], //schemata
258+
['season', 'seasons'],
257259
['selfie', 'selfies'],
258260
['series', 'series'],
259261
['service', 'services'],

0 commit comments

Comments
 (0)
0