8000 bug #57538 [String] Add `alias` case to `EnglishInflector` (alexandre… · symfony/symfony@1b18a07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b18a07

Browse files
bug #57538 [String] Add alias case to EnglishInflector (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [String] Add `alias` case to `EnglishInflector` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #57524 | License | MIT Commits ------- 5468d38 [String] Add `alias` case to `EnglishInflector`
2 parents 4373db6 + 5468d38 commit 1b18a07

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
@@ -289,6 +289,9 @@ final class EnglishInflector implements InflectorInterface
289289
// atlases (atlas)
290290
['salta', 5, true, true, 'atlases'],
291291

292+
// aliases (alias)
293+
['saila', 5, true, true, 'aliases'],
294+
292295
// irises (iris)
293296
['siri', 4, true, true, 'irises'],
294297

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ public static function pluralizeProvider()
317317
['hippocampus', 'hippocampi'],
318318
['campus', 'campuses'],
319319
['hardware', 'hardware'],
320+
['alias', 'aliases'],
320321

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

0 commit comments

Comments
 (0)
0