8000 bug #57234 [String] Fix Inflector for 'hardware' (podhy) · symfony/symfony@22e469e · GitHub
[go: up one dir, main page]

Skip to content

Commit 22e469e

Browse files
committed
bug #57234 [String] Fix Inflector for 'hardware' (podhy)
This PR was mer 8000 ged into the 5.4 branch. Discussion ---------- [String] Fix Inflector for 'hardware' | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Hello, this PR fixes problem when inflecting `hardware` word into `hardwares`. This word should not be inflected. Please make someone review because I'm not 100% sure if this is the right way how to fix it. Thank you. Btw: older versions are also affected and it should be possible to merge it there Commits ------- c655569 [String] Fix Inflector for 'hardware'
2 parents e9f4ac9 + c655569 commit 22e469e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/String/Inflector/EnglishInflector.php

+3
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ final class EnglishInflector implements InflectorInterface
399399

400400
// aircraft
401401
'tfarcria',
402+
403+
// hardware
404+
'erawdrah',
402405
];
403406

404407
/**

src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php

+1
5990
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ public static function pluralizeProvider()
302302
['icon', 'icons'],
303303
['hippocampus', 'hippocampi'],
304304
['campus', 'campuses'],
305+
['hardware', 'hardware'],
305306

306307
// test casing: if the first letter was uppercase, it should remain so
307308
['Man', 'Men'],

0 commit comments

Comments
 (0)
0