Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[String] Fix Inflector for 'status' #50810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[String] Fix Inflector for 'status'
  • Loading branch information
evertharmeling committed Jun 28, 2023
commit 3fba6c4d9068c353cee730eea5f90b018cc7aa77
9 changes: 9 additions & 0 deletions 9 src/Symfony/Component/String/Inflector/EnglishInflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ final class EnglishInflector implements InflectorInterface
// accesses (access), addresses (address), kisses (kiss)
['sess', 4, true, false, 'ss'],

// statuses (status)
['sesutats', 8, true, true, 'status'],

// analyses (analysis), ellipses (ellipsis), fungi (fungus),
// neuroses (neurosis), theses (thesis), emphases (emphasis),
// oases (oasis), crises (crisis), houses (house), bases (base),
Expand Down Expand Up @@ -138,6 +141,9 @@ final class EnglishInflector implements InflectorInterface
// shoes (shoe)
['se', 2, true, true, ['', 'e']],

// status (status)
['sutats', 6, true, true, 'status'],

// tags (tag)
['s', 1, true, true, ''],

Expand Down Expand Up @@ -279,6 +285,9 @@ final class EnglishInflector implements InflectorInterface
// circuses (circus)
['suc', 3, true, true, 'cuses'],

// status (status)
['sutats', 6, true, true, ['status', 'statuses']],

// conspectuses (conspectus), prospectuses (prospectus)
['sutcep', 6, true, true, 'pectuses'],

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public static function singularizeProvider()
['species', 'species'],
['spies', 'spy'],
['staves', ['staf', 'stave', 'staff']],
['status', 'status'],
['statuses', 'status'],
['stories', 'story'],
['strata', ['straton', 'stratum']],
['suitcases', ['suitcas', 'suitcase', 'suitcasis']],
Expand Down Expand Up @@ -279,6 +281,7 @@ public static function pluralizeProvider()
['sheriff', 'sheriffs'],
['shoe', 'shoes'],
['species', 'species'],
['status', ['status', 'statuses']],
['spy', 'spies'],
['staff', 'staves'],
['story', 'stories'],
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.