- Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Description
Laravel Version
10.48.13
PHP Version
8.3.8
Database Driver & Version
No response
Description
A recent addition to Collection::shift() causes it to throw an exception when running on a empty collection.
Will provide a PR to fix this issue.
Steps To Reproduce
- create a collection with two objects
- call
shift()three times on it and assign it to variables - dump a property of the object for every variable
- it will throw an exception saying it can not call the property on a collection
jfw7
Metadata
Metadata
Assignees
Labels
No labels