merged branch ianfp/ticket_8529 (PR #8531)
This PR was merged into the 2.2 branch.
Discussion
----------
[PropertyAccess] added moves to pluralMap
Fixes https://github.com/symfony/symfony/issues/8529
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8529
| License | MIT
| Doc PR | none
Commits
-------
d6cafcd
[PropertyAccess] added moves to pluralMap
This commit is contained in:
commit
75bf7a1a28
|
@ -75,6 +75,9 @@ class StringUtil
|
|||
// lives (life), wives (wife)
|
||||
array('sevi', 4, false, true, 'ife'),
|
||||
|
||||
// moves (move)
|
||||
array('sevom', 5, true, true, 'move'),
|
||||
|
||||
// hooves (hoof), dwarves (dwarf), elves (elf), leaves (leaf)
|
||||
array('sev', 3, true, true, 'f'),
|
||||
|
||||
|
|
|
@ -118,6 +118,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase
|
|||
array('cheeses', array('chees', 'cheese', 'cheesis')),
|
||||
array('radii', 'radius'),
|
||||
array('objectives', 'objective'),
|
||||
array('moves', 'move'),
|
||||
|
||||
// test casing: if the first letter was uppercase, it should remain so
|
||||
array('Men', 'Man'),
|
||||
|
|
Reference in New Issue