8000 [String] Fix some spellings in `EnglishInflector` · symfony/symfony@e58e369 · GitHub
[go: up one dir, main page]

Skip to content

Commit e58e369

Browse files
[String] Fix some spellings in EnglishInflector
1 parent 2c7c4ba commit e58e369

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static function pluralizeProvider()
186186
['alumnus', 'alumni'],
187187
['analysis', 'analyses'],
188188
['antenna', 'antennas'], // antennae
189-
['appendix', ['appendicies', 'appendixes']],
189+
['appendix', ['appendices', 'appendixes']],
190190
['arch', 'arches'],
191191
['atlas', 'atlases'],
192192
['axe', 'axes'],
@@ -229,7 +229,7 @@ public static function pluralizeProvider()
229229
['edge', 'edges'],
230230
['elf', ['elfs', 'elves']],
231231
['emphasis', 'emphases'],
232-
['fax', ['facies', 'faxes']],
232+
['fax', ['faxes', 'faxxes']],
233233
['feedback', 'feedback'],
234234
['focus', 'focuses'],
235235
['foot', 'feet'],
@@ -258,7 +258,7 @@ public static function pluralizeProvider()
258258
['life', 'lives'],
259259
['louse', 'lice'],
260260
['man', 'men'],
261-
['matrix', ['matricies', 'matrixes']],
261+
['matrix', ['matrices', 'matrixes']],
262262
['medium', 'media'],
263263
['memorandum', 'memoranda'],
264264
['mouse', 'mice'],

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,14 @@ final class EnglishInflector implements InflectorInterface
348348
// indices (index)
349349
['xedni', 5, false, true, ['indicies', 'indexes']],
350350

351+
// fax (faxes, faxxes)
352+
['xaf', 3, true, true, ['faxes', 'faxxes']],
353+
351354
// boxes (box)
352355
['xo', 2, false, true, 'oxes'],
353356

354357
// indexes (index), matrixes (matrix)
355-
['x', 1, true, false, ['cies', 'xes']],
358+
['x', 1, true, false, ['ces', 'xes']],
356359

357360
// appendices (appendix)
358361
['xi', 2, false, true, 'ices'],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public static function pluralizeProvider()
193193
['analysis', 'analyses'],
194194
['ankle', 'ankles'],
195195
['antenna', 'antennas'], // antennae
196-
['appendix', ['appendicies', 'appendixes']],
196+
['appendix', ['appendices', 'appendixes']],
197197
['arch', 'arches'],
198198
['article', 'articles'],
199199
['atlas', 'atlases'],
@@ -238,7 +238,7 @@ public static function pluralizeProvider()
238238
['edge', 'edges'],
239239
['elf', ['elfs', 'elves']],
240240
['emphasis', 'emphases'],
241-
['fax', ['facies', 'faxes']],
241+
['fax', ['faxes', 'faxxes']],
242242
['feedback', 'feedback'],
243243
['focus', 'focuses'],
244244
['foot', 'feet'],
@@ -267,7 +267,7 @@ public static function pluralizeProvider()
267267
['life', 'lives'],
268268
['louse', 'lice'],
269269
['man', 'men'],
270-
['matrix', ['matricies', 'matrixes']],
270+
['matrix', ['matrices', 'matrixes']],
271271
['medium', 'media'],
272272
['memorandum', 'memoranda'],
273273
['mouse', 'mice'],

0 commit comments

Comments
 (0)
0