Skip to content

Commit

Permalink
Merge pull request #129 from eric-addcream/patch_canvas
Browse files Browse the repository at this point in the history
Added pluralization rules for 'canvas' and 'gas'.
  • Loading branch information
alcaeus committed Oct 30, 2019
2 parents 58505fa + d8b64d3 commit ec3a552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/Common/Inflector/Inflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Inflector
'beef' => 'beefs',
'brother' => 'brothers',
'cafe' => 'cafes',
'canvas' => 'canvases',
'chateau' => 'chateaux',
'niveau' => 'niveaux',
'child' => 'children',
Expand All @@ -99,6 +100,7 @@ class Inflector
'foot' => 'feet',
'fungus' => 'fungi',
'ganglion' => 'ganglions',
'gas' => 'gases',
'genie' => 'genies',
'genus' => 'genera',
'goose' => 'geese',
Expand Down
2 changes: 2 additions & 0 deletions tests/Doctrine/Tests/Common/Inflector/InflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function dataSampleWords() : array
array('cactus', 'cacti'),
array('cafe', 'cafes'),
array('calf', 'calves'),
array('canvas', 'canvases'),
array('categoria', 'categorias'),
array('chateau', 'chateaux'),
array('cherry', 'cherries'),
Expand Down Expand Up @@ -73,6 +74,7 @@ public function dataSampleWords() : array
array('FoodMenu', 'FoodMenus'),
array('foot', 'feet'),
array('fungus', 'fungi'),
array('gas', 'gases'),
array('goose', 'geese'),
array('glove', 'gloves'),
array('gulf', 'gulfs'),
Expand Down

0 comments on commit ec3a552

Please sign in to comment.