Skip to content

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