Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Fix the chunk method to an integer type in the splitIn method #51733

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

rookiexxk
Copy link
Contributor

@rookiexxk rookiexxk commented Jun 7, 2024

Fixed a bug in the framework by converting the argument passed to the chunk method to an integer type in the splitIn method.

the chunk method requires an integer, but this method does pass a float type。This change ensures that the method operates correctly by rounding up the count of elements divided by the specified number of groups to the nearest integer。

image

@taylorotwell taylorotwell merged commit b3db6b6 into laravel:11.x Jun 7, 2024
30 checks passed
@rookiexxk rookiexxk deleted the fix-bug branch June 7, 2024 15:15
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