We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd63bc0 commit 7b32469Copy full SHA for 7b32469
1 file changed
src/Illuminate/Database/Eloquent/Collection.php
@@ -563,7 +563,13 @@ public function getQueueableRelations()
563
564
$relations = $this->map->getQueueableRelations()->all();
565
566
- return $relations === [[]] ? [] : array_intersect(...$relations);
+ if (count($relations) === 0 || $relations === [[]]) {
567
+ return [];
568
+ } elseif (count($relations) === 1) {
569
+ return $relations[0];
570
+ } else {
571
+ return array_intersect(...$relations);
572
+ }
573
}
574
575
/**
0 commit comments