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

In type fixes #44

Merged
merged 3 commits into from
Apr 23, 2024
Merged

In type fixes #44

merged 3 commits into from
Apr 23, 2024

Conversation

erik-perri
Copy link
Member

The in/notIn rules were typed incorrectly compared to what Laravel was type hinted as supporting.

It is still typed a little oddly, any maybe wrong depending on how you interpret it. Laravel's internal rule will use func_get_args if not passed an array, but we do not do the same. I am not sure how we want to handle it, so for now I am just bringing the expected types in line with Laravel. We may want to use the same pattern, or add ...$values to come closer to supporting the default of in($valueA, $valueB, ...).


There were also some rules that were added before the docs site had been updated which were missing the links, this adds them and updates the text to match the docs.

Copy link
Member

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

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

enum typing still confuses me.

@erik-perri erik-perri merged commit 22658a2 into master Apr 23, 2024
4 checks passed
@erik-perri erik-perri deleted the in-type-fixes branch April 23, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants