generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When shard() exhausts collection and the reminder is empty, it should not be appended, as it is always empty
How to reproduce the bug
collect([1,2])->shard([
fn($x) => $x === 1,
fn($x) => $x === 2,
])Should return explicitly two collections, without remainder
Package Version
1.0.0
PHP Version
8.2
Laravel Version
12
Which operating systems does this happen with?
No response
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working