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

Use array_fill_keys() #7661

Merged
merged 1 commit into from Feb 13, 2022
Merged

Use array_fill_keys() #7661

merged 1 commit into from Feb 13, 2022

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Feb 13, 2022

There was a number of calls to array_map(fn()=>true, array_flip($array)) that got replaced with a simpler (and more performant) array_fill_keys($array, true)

There was a number of calls to `array_map(fn()=>true, array_flip($array))` that got replaced with a simpler (and more performant) `array_fill_keys($array, true)`
@weirdan weirdan added the release:internal The PR will be included in 'Internal changes' section of the release notes label Feb 13, 2022
@weirdan weirdan requested a review from orklah February 13, 2022 05:12
@weirdan weirdan merged commit 52ad607 into vimeo:master Feb 13, 2022
@weirdan weirdan deleted the fix-array_fill_keys branch February 13, 2022 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:internal The PR will be included in 'Internal changes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants