bug #34244 [Inflector] add support for 'species' (jeffreymoelands)

This PR was merged into the 4.3 branch.

Discussion
----------

[Inflector] add support for 'species'

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

This PR improves the inflection of the word 'species'
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

cc87e40a8f add species to inflector and inflector tests
This commit is contained in:
Nicolas Grekas 2019-11-06 09:52:55 +01:00
commit ddf9e0fa1c
2 changed files with 3 additions and 0 deletions

View File

@ -318,6 +318,7 @@ final class Inflector
'esoom',
'seires',
'peehs',
'seiceps',
];
/**

View File

@ -134,6 +134,7 @@ class InflectorTest extends TestCase
['services', 'service'],
['sheriffs', 'sheriff'],
['shoes', ['sho', 'shoe']],
['species', 'species'],
['spies', 'spy'],
['staves', ['staf', 'stave', 'staff']],
['stories', 'story'],
@ -268,6 +269,7 @@ class InflectorTest extends TestCase
['service', 'services'],
['sheriff', 'sheriffs'],
['shoe', 'shoes'],
['species', 'species'],
['spy', 'spies'],
['staff', 'staves'],
['story', 'stories'],