Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bc4b36

Browse files
committed
Added people - person inflection
1 parent ea9d6e7 commit 5bc4b36

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Component/Inflector/Inflector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ final class Inflector
126126

127127
// chateaux (chateau)
128128
array('xuae', 4, false, true, 'eau'),
129+
130+
// people (person)
131+
array('elpoep', 6, true, true, 'person'),
129132
);
130133

131134
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public function singularizeProvider()
107107
array('objectives', 'objective'),
108108
array('oxen', 'ox'),
109109
array('parties', 'party'),
110+
array('people', 'person'),
111+
array('persons', 'person'),
110112
array('phenomena', array('phenomenon', 'phenomenum')),
111113
array('photos', 'photo'),
112114
array('pianos', 'piano'),

0 commit comments

Comments
 (0)