Skip to content

Commit 4e6d1b0

Browse files
bug #53715 [String] Fix plural of word ending by pus (Fan2Shrek)
This PR was merged into the 5.4 branch. Discussion ---------- [String] Fix plural of word ending by pus | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #53685 | License | MIT Fix the pluralization of words ending by 'pus' like campus. Previously was campi instead of campuses Commits ------- 3823582 Fix plurial of word ending by pus
2 parents f0a9916 + 3823582 commit 4e6d1b0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ final class EnglishInflector implements InflectorInterface
291291
// circuses (circus)
292292
['suc', 3, true, true, 'cuses'],
293293

294+
// hippocampi (hippocampus)
295+
['supmacoppih', 11, false, false, 'hippocampi'],
296+
297+
// campuses (campus)
298+
['sup', 3, true, true, 'puses'],
299+
294300
// status (status)
295301
['sutats', 6, true, true, ['status', 'statuses']],
296302

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ public static function pluralizeProvider()
298298
['waltz', 'waltzes'],
299299
['wife', 'wives'],
300300
['icon', 'icons'],
301+
['hippocampus', 'hippocampi'],
302+
['campus', 'campuses'],
301303

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

0 commit comments

Comments
 (0)