Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 1, 2020
1 parent d82f78b commit 48e4d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Collection.php
Expand Up @@ -563,7 +563,7 @@ public function getQueueableRelations()

$relations = $this->map->getQueueableRelations()->all();

return count($relations) <= 1 ? $relations : array_intersect(...$relations);
return $relations === [[]] ? [] : array_intersect(...$relations);
}

/**
Expand Down

0 comments on commit 48e4d60

Please sign in to comment.