8000 Fix plurial of word ending by pus · symfony/symfony@963318f · GitHub
[go: up one dir, main page]

Skip to content

Commit 963318f

Browse files
committed
Fix plurial of word ending by pus
1 parent e111a54 commit 963318f

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
@@ -291,6 +291,9 @@ final class EnglishInflector implements InflectorInterface
291291
// circuses (circus)
292292
['suc', 3, true, true, 'cuses'],
293293

294+
// campuses (campus)
295+
['sup', 3, true, true, 'puses'],
296+
294297
// status (status)
295298
['sutats', 6, true, true, ['status', 'statuses']],
296299

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public static function pluralizeProvider()
298298
['waltz', 'waltzes'],
299299
['wife', 'wives'],
300300
['icon', 'icons'],
301+
['hippocampus', 'hippocampuses'],
301302

302303
// test casing: if the first letter was uppercase, it should remain so
303304
['Man', 'Men'],

0 commit comments

Comments
 (0)
0