Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddf9e0f

Browse files
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 ------- cc87e40 add species to inflector and inflector tests
2 parents 620e894 + cc87e40 commit ddf9e0f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Symfony/Component/Inflector/Inflector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ final class Inflector
318318
'esoom',
319319
'seires',
320320
'peehs',
321+
'seiceps',
321322
];
322323

323324
/**

src/Symfony/Component/Inflector/Tests/InflectorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public function singularizeProvider()
134134
['services', 'service'],
135135
['sheriffs', 'sheriff'],
136136
['shoes', ['sho', 'shoe']],
137+
['species', 'species'],
137138
['spies', 'spy'],
138139
['staves', ['staf', 'stave', 'staff']],
139140
['stories', 'story'],
@@ -268,6 +269,7 @@ public function pluralizeProvider()
268269
['service', 'services'],
269270
['sheriff', 'sheriffs'],
270271
['shoe', 'shoes'],
272+
['species', 'species'],
271273
['spy', 'spies'],
272274
['staff', 'staves'],
273275
['story', 'stories'],

0 commit comments

Comments
 (0)