Skip to content

Commit 836000d

Browse files
committedDec 12, 2023
Fix return type declaration in BelongsToManyKeys class
1 parent 7fd03a9 commit 836000d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Relations/BelongsToManyKeys.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function addEagerConstraints(array $models): void
7474
*
7575
* @param string $relation
7676
*/
77-
public function initRelation(array $models, $relation): array|Collection
77+
public function initRelation(array $models, $relation): array
7878
{
7979
foreach ($models as $model) {
8080
$model->setRelation($relation, $this->related->newCollection());
@@ -107,7 +107,7 @@ public function match(array $models, Collection $results, $relation): array
107107
/**
108108
* Build a dictionary using the given models.
109109
*/
110-
public function buildDictionary(Collection $models): array|Collection
110+
public function buildDictionary(Collection $models): array
111111
{
112112
$dictionary = [];
113113
foreach ($models as $model) {

0 commit comments

Comments
 (0)