Skip to content

Commit 48e4d60

Browse files
committed
fix
1 parent d82f78b commit 48e4d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public function getQueueableRelations()
563563

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

566-
return count($relations) <= 1 ? $relations : array_intersect(...$relations);
566+
return $relations === [[]] ? [] : array_intersect(...$relations);
567567
}
568568

569569
/**

0 commit comments

Comments
 (0)