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

[5.2] Fix #14468 by fixing another issue with PR #14188 #14476

Merged
merged 1 commit into from
Jul 26, 2016
Merged

[5.2] Fix #14468 by fixing another issue with PR #14188 #14476

merged 1 commit into from
Jul 26, 2016

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Jul 25, 2016

As addressed here: #14468

The change merged in PR #14188 causes the results inside the Paginator to be an empty array if no results while it'll be an Eloquent Collection otherwise.

Inside the LengthAwarePaginator the empty array will be converted to an empty Base Collection while it's expected to be an Eloquent Collection instead.

This results a Method Not Found exception when you try to use any of the methods that exist in Eloquent\Collection but doesn't exist in Base Collection in the case of no results found.

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