Skip to content

[13.x] Use Stringable::explode() instead of new Collection(explode()) - #60979

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:fix/explode-via-stringable
Aug 2, 2026
Merged

[13.x] Use Stringable::explode() instead of new Collection(explode())#60979
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:fix/explode-via-stringable

Conversation

@lucasmichot

@lucasmichot lucasmichot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Replaces new Collection(explode(...)), Collection::wrap(explode(...)), and collect(explode(...)) with (new Stringable(...))->explode(...) across 17 files. Same underlying behavior, reads as splitting a string rather than wrapping an array.

@lucasmichot lucasmichot changed the title Use Stringable::explode() instead of new Collection(explode()) [13.x] Use Stringable::explode() instead of new Collection(explode()) Aug 2, 2026
Replaces new Collection(explode(...)) / Collection::wrap(explode(...))
/ collect(explode(...)) with (new Stringable(...))->explode(...),
which does the same thing internally but reads as string-splitting
rather than array-wrapping.
@lucasmichot
lucasmichot force-pushed the fix/explode-via-stringable branch from 7adfae2 to c09de17 Compare August 2, 2026 15:18
@taylorotwell
taylorotwell merged commit 462c14a into laravel:13.x Aug 2, 2026
37 of 53 checks passed
@lucasmichot
lucasmichot deleted the fix/explode-via-stringable branch August 3, 2026 18:08
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