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

Specify some iterable types #2092

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Conversation

franmomu
Copy link
Contributor

There are quite array types in the code, the idea is to be more specific about what types are holding, but I guess most of them are array<string, mixed>, we could maybe be more specific in some cases like AbstractSuggestion:: setRegexOptions().

Copy link
Owner

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

I really appreciate that you put all this into small digestible PR's. Makes reviewing and getting these in much easier!

@@ -56,6 +56,11 @@ public function setRegex(string $regex): self
* Expects one of the next params: max_determinized_states - defaults to 10000,
* flags are ALL (default), ANYSTRING, COMPLEMENT, EMPTY, INTERSECTION, INTERVAL, or NONE.
*
* @phpstan-param array{
* max_determinized_states?: int,
* flags: 'ALL'|'ANYSTRING'|'COMPLEMENT'|'EMPTY'|'INTERSECTION'|'INTERVAL'|'NONE'
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

@ruflin ruflin merged commit 7e4de1e into ruflin:master Jun 27, 2022
@franmomu franmomu deleted the specify_iterable branch June 27, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants