There was an error while loading. Please reload this page.
1 parent fccdf7c commit d82f78bCopy full SHA for d82f78b
1 file changed
src/Illuminate/Database/Eloquent/Collection.php
@@ -557,7 +557,13 @@ public function getQueueableIds()
557
*/
558
public function getQueueableRelations()
559
{
560
- return $this->isEmpty() ? [] : array_intersect(...$this->map->getQueueableRelations()->all());
+ if ($this->isEmpty()) {
561
+ return [];
562
+ }
563
+
564
+ $relations = $this->map->getQueueableRelations()->all();
565
566
+ return count($relations) <= 1 ? $relations : array_intersect(...$relations);
567
}
568
569
/**
0 commit comments