Skip to content

Commit 48e4d60

Browse files
committed
fix
1 parent d82f78b commit 48e4d60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Database/Eloquent/Collection.php

Lines changed: 1 addition & 1 deletion
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)