Skip to content
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

Add uncountable word from Laravel Framework #194

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Conversation

cesarep
Copy link
Contributor

@cesarep cesarep commented Apr 8, 2022

Simply adds uncountable words from Laravel not presented here: 'cattle', 'kin', 'recommended', 'related'

@@ -149,6 +151,8 @@ private static function getDefault(): iterable
yield new Pattern('progress');
yield new Pattern('rabies');
yield new Pattern('rain');
yield new Pattern('recommended');
yield new Pattern('related');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two aren't nouns, why are they being pluralized somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Laravel uses it, among other things, to determine the parameters name on a route, singularizing it, like: /images/{image}/, and table names for models, pluralizing it.
My guess is those are fairly common words to use in a URL, but to keep things consistent, maybe those should be handed there, and not here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That be the way to go in my opinion. Also please add tests for other 2 words that are to stay :)

@malarzm malarzm added this to the 2.0.5 milestone Apr 8, 2022
@malarzm malarzm added the Bug label Apr 8, 2022
@malarzm malarzm merged commit bd3ebc2 into doctrine:2.0.x Apr 8, 2022
@malarzm
Copy link
Member

malarzm commented Apr 8, 2022

Thanks @cesarep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants