Skip to content

Commit

Permalink
bug #34244 [Inflector] add support for 'species' (jeffreymoelands)
Browse files Browse the repository at this point in the history
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
-------

cc87e40 add species to inflector and inflector tests
  • Loading branch information
nicolas-grekas committed Nov 6, 2019
2 parents 620e894 + cc87e40 commit ddf9e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/Inflector/Inflector.php
Expand Up @@ -318,6 +318,7 @@ final class Inflector
'esoom',
'seires',
'peehs',
'seiceps',
];

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/Inflector/Tests/InflectorTest.php
Expand Up @@ -134,6 +134,7 @@ public function singularizeProvider()
['services', 'service'],
['sheriffs', 'sheriff'],
['shoes', ['sho', 'shoe']],
['species', 'species'],
['spies', 'spy'],
['staves', ['staf', 'stave', 'staff']],
['stories', 'story'],
Expand Down Expand Up @@ -268,6 +269,7 @@ public function pluralizeProvider()
['service', 'services'],
['sheriff', 'sheriffs'],
['shoe', 'shoes'],
['species', 'species'],
['spy', 'spies'],
['staff', 'staves'],
['story', 'stories'],
Expand Down

0 comments on commit ddf9e0f

Please sign in to comment.