-
Notifications
You must be signed in to change notification settings - Fork 141
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
Using array_key_exists() on objects is deprecated when using paginate() with object target #294
Comments
Can you provide an example of using paginate with an object? |
I don't have any sample code, but it could be something like |
That's already working, as it's working with QueryBuilder objects and with many other objects. |
I know that it works with |
A PR is welcome |
Done 🙂 |
@garak The linked PR was closed more than one year ago with the following remark:
Should this issue be closed as well? |
I'm not really sure. |
Maybe we can try this: $items = get_mangled_object_vars($this->items);
return array_key_exists($offset, $items); A PR is still welcome |
When using the
paginate()
method of thePaginator
class with an object as target, it throws the following deprecation:It can be fixed with the following change:
Since
paginate
has the following description for the$target
argument:Should I open a PR for that?
The text was updated successfully, but these errors were encountered: