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

[8.x] Test and annotate that Arr::pull() works with int keys #42927

Merged
merged 1 commit into from
Jun 23, 2022
Merged

[8.x] Test and annotate that Arr::pull() works with int keys #42927

merged 1 commit into from
Jun 23, 2022

Conversation

spawnia
Copy link
Contributor

@spawnia spawnia commented Jun 23, 2022

This pull request corrects the type hint of the argument
$key in Illuminate\Support\Arr::pull() to allow
int keys. This avoids false-positives from IDEs and
static analysis tools.

In order to ensure it actually works as intended,
I added a test case.

This pull request corrects the type hint of the argument
`$key` in `Illuminate\Support\Arr::pull()` to allow
int keys. This avoids false-positives from IDEs and
static analysis tools.

In order to ensure it actually works as intended,
I added a test case.
@taylorotwell taylorotwell merged commit eece7ba into laravel:8.x Jun 23, 2022
@spawnia spawnia deleted the arr-pull-with-int-keys branch June 23, 2022 15:31
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