Skip to content

Commit

Permalink
Merge branch '6.3' into 6.4
Browse files Browse the repository at this point in the history
* 6.3:
  [Serializer] Fix normalization relying on allowed attributes only
  [VarExporter] Work around php/php-src#12695 for lazy objects, fixing nullsafe-related behavior
  [Validator] Add missing translations for Bulgarian #51931
  [VarExporter] Fix serializing objects that implement __sleep() and that are made lazy
  [String] Fix Inflector for 'icon'
  • Loading branch information
nicolas-grekas committed Nov 28, 2023
2 parents 6c4c7ed + 5642788 commit b45fcf3
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 b45fcf3

Please sign in to comment.