Skip to content

Bad argument passed to array_map() on MongoFailedJobProvider #1013

Closed
@juanf

Description

@juanf

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions