Skip to content

Conversation

@Button99
Copy link
Contributor

Hello, this PR adds validations to Collection::split(), Collection::splitIn() and LazyCollection::split(), LazyCollection:splitIn() methods.
The methods previously would return error (DivisionByZeroError). Now it returns an InvalidArgumentException if the parameter is <=0

@taylorotwell
Copy link
Member

I really don't want to open the floodgates of PRs with these minor things. I want to focus on impactful DX improvements.

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