Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
epic-64:patch-1
Apr 4, 2025
Merged

cosmetic: include is_array() case in match construct of getArrayableItems#55275
taylorotwell merged 1 commit into
laravel:12.xfrom
epic-64:patch-1

Conversation

@epic-64

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

Copy link
Copy Markdown
Contributor

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
@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