Skip to content

Commit 00e9ed7

Browse files
committed
use array values first
1 parent cfed253 commit 00e9ed7

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
@@ -566,7 +566,7 @@ public function getQueueableRelations()
566566
if (count($relations) === 0 || $relations === [[]]) {
567567
return [];
568568
} elseif (count($relations) === 1) {
569-
return $relations[0];
569+
return array_values($relations)[0];
570570
} else {
571571
return array_intersect(...$relations);
572572
}

0 commit comments

Comments
 (0)