Skip to content

cosmetic: include is_array() case in match construct of getArrayableItems #55275

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

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

epic-64
Copy link
Contributor

@epic-64 epic-64 commented Apr 4, 2025

getArrayableItems() already makes excellent use of match(true). I would like to include the is_array check (currently a separate if block), to make it more uniform and end up with a single expression and a single return.

The behavior and performance will remain unchanged.

getArrayableItems() already makes excellent use of match(true). I would like to include the is_array check in there to make it more uniform and end up with a single expression.
@taylorotwell taylorotwell merged commit 0b96d9b into laravel:12.x Apr 4, 2025
41 checks passed
@epic-64 epic-64 deleted the patch-1 branch April 4, 2025 22:47
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