Skip to content

Commit

Permalink
[String] Fix Inflector for 'icon'
Browse files Browse the repository at this point in the history
  • Loading branch information
podhy authored and nicolas-grekas committed Nov 26, 2023
1 parent 241641a commit 91bf445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Inflector/EnglishInflector.php
Expand Up @@ -253,6 +253,9 @@ final class EnglishInflector implements InflectorInterface
// seasons (season), treasons (treason), poisons (poison), lessons (lesson)
['nos', 3, true, true, 'sons'],

// icons (icon)
['noc', 3, true, true, 'cons'],

// bacteria (bacterium), criteria (criterion), phenomena (phenomenon)
['no', 2, true, true, 'a'],

Expand Down
1 change: 1 addition & 0 deletions Tests/Inflector/EnglishInflectorTest.php
Expand Up @@ -295,6 +295,7 @@ public static function pluralizeProvider()
['tree', 'trees'],
['waltz', 'waltzes'],
['wife', 'wives'],
['icon', 'icons'],

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

0 comments on commit 91bf445

Please sign in to comment.