8000 bug #14191 [StringUtil] Fixed singularification of 'movies' (GerbenWi… · symfony/symfony@a3f9c7f · GitHub
[go: up one dir, main page]

Skip to content

Commit a3f9c7f

Browse files
committed
bug #14191 [StringUtil] Fixed singularification of 'movies' (GerbenWijnja)
This PR was merged into the 2.3 branch. Discussion ---------- [StringUtil] Fixed singularification of 'movies' | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14189 | License | MIT | Doc PR | n/a The word 'movies' was singularified to 'movy'. There seem to be only two words ending in 'ovies', which are 'movies' and 'anchovies'. The singular of the latter is 'anchovy'. All other words ending in 'vies' singularify to 'vy', so the word 'movies' is an exception to the general rule. Commits ------- 6f5e95b [StringUtil] Fixed singularification of 'movies'
2 parents 36d62ee + 6f5e95b commit a3f9c7f

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+
// movies (movie)
64+
array('seivom', 6, true, true, 'movie'),
65+
6366
// babies (baby)
6467
array('sei', 3, false, true, 'y'),
6568

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public function singularifyProvider()
9999
array('men', 'man'),
100100
array('mice', 'mouse'),
10 535D 1101
array('moves', 'move'),
102+
array('movies', 'movie'),
102103
array('nebulae', 'nebula'),
103104
array('neuroses', array('neuros', 'neurose', 'neurosis')),
104105
array('oases', array('oas', 'oase', 'oasis')),

0 commit comments

Comments
 (0)
0