8000 minor #14452 [StringUtil] Fixed singularification of 'selfies' (pmodin) · symfony/symfony@94cf4ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 94cf4ba

Browse files
committed
minor #14452 [StringUtil] Fixed singularification of 'selfies' (pmodin)
This PR was merged into the 2.3 branch. Discussion ---------- [StringUtil] Fixed singularification of 'selfies' | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Related to #14191. At tonights PHP Stockholm meetup we discussed #14191, and we noticed that "selfie" was incorrectly handled as well. One selfie, many selfies. Commits ------- 7c2b875 [StringUtil] Fixed singularification of 'selfies'
2 parents 01b2d8e + 7c2b875 commit 94cf4ba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/PropertyAccess/StringUtil.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class StringUtil
6060
// indices (index), appendices (appendix), prices (price)
6161
array('seci', 4, false, true, array('ex', 'ix', 'ice')),
6262

63+
// selfies (selfie)
64+
array('seifles', 7, true, true, 'selfie'),
65+
6366
// movies (movie)
6467
array('seivom', 6, true, true, 'movie'),
6568

src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public function singularifyProvider()
119119
array('sandwiches', array('sandwich', 'sandwiche')),
120120
array('scarves', array('scarf', 'scarve', 'scarff')),
121121
array('schemas', 'schema'), //schemata
122+
array('selfies', 'selfie'),
122123
array('sheriffs', 'sheriff'),
123124
array('shoes', array('sho', 'shoe')),
124125
array('spies', 'spy'),

0 commit comments

Comments
 (0)
0