Skip to content

Commit 22e469e

Browse files
committed
bug #57234 [String] Fix Inflector for 'hardware' (podhy)
This PR was merged 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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy