Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [String] Fix some spellings in `EnglishInflector`
  • Loading branch information
nicolas-grekas committed Nov 13, 2024
2 parents 38371c6 + 136ca7d commit 73a5e66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Inflector/EnglishInflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,14 @@ final class EnglishInflector implements InflectorInterface
// indices (index)
['xedni', 5, false, true, ['indicies', 'indexes']],

// fax (faxes, faxxes)
['xaf', 3, true, true, ['faxes', 'faxxes']],

// boxes (box)
['xo', 2, false, true, 'oxes'],

// indexes (index), matrixes (matrix)
['x', 1, true, false, ['cies', 'xes']],

// appendices (appendix)
['xi', 2, false, true, 'ices'],
// indexes (index), matrixes (matrix), appendices (appendix)
['x', 1, true, false, ['ces', 'xes']],

// babies (baby)
['y', 1, false, true, 'ies'],
Expand Down
6 changes: 3 additions & 3 deletions Tests/Inflector/EnglishInflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static function pluralizeProvider()
['analysis', 'analyses'],
['ankle', 'ankles'],
['antenna', 'antennas'], // antennae
['appendix', ['appendicies', 'appendixes']],
['appendix', ['appendices', 'appendixes']],
['arch', 'arches'],
['article', 'articles'],
['atlas', 'atlases'],
Expand Down Expand Up @@ -240,7 +240,7 @@ public static function pluralizeProvider()
['edge', 'edges'],
['elf', ['elfs', 'elves']],
['emphasis', 'emphases'],
['fax', ['facies', 'faxes']],
['fax', ['faxes', 'faxxes']],
['feedback', 'feedback'],
['focus', 'focuses'],
['foot', 'feet'],
Expand Down Expand Up @@ -269,7 +269,7 @@ public static function pluralizeProvider()
['life', 'lives'],
['louse', 'lice'],
['man', 'men'],
['matrix', ['matricies', 'matrixes']],
['matrix', ['matrices', 'matrixes']],
['medium', 'media'],
['memorandum', 'memoranda'],
['mouse', 'mice'],
Expand Down

0 comments on commit 73a5e66

Please # to comment.