Skip to content

Bad argument passed to array_map() on MongoFailedJobProvider #1013

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

Closed
juanf opened this issue Oct 31, 2016 · 0 comments
Closed

Bad argument passed to array_map() on MongoFailedJobProvider #1013

juanf opened this issue Oct 31, 2016 · 0 comments

Comments

@juanf
Copy link
Contributor

juanf commented Oct 31, 2016

When running php artisan queue:failed this error is thrown:

  [ErrorException]
  array_map(): Argument #2 should be an array

The problem lies on MongoFailedJobProvider::all().
If I change line 31 from this:
$all = $this->getTable()->orderBy('_id', 'desc')->get();
to this:
$all = $this->getTable()->orderBy('_id', 'desc')->get()->all();

Then it works ok (using Laravel 5.3).

juanf added a commit to juanf/laravel-mongodb that referenced this issue Nov 4, 2016
jenssegers pushed a commit that referenced this issue Nov 4, 2016
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this issue Sep 2, 2024
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

No branches or pull requests

2 participants