Skip to content

Commit 1ae0313

Browse files
committed
Undo typehint
1 parent 4fe4efc commit 1ae0313

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Adapter/AdapterInterface.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,12 @@ public function delete($model): void;
227227
*
228228
* @param array $models
229229
* @param array $relationships
230-
* @param Closure $scope Should be called to give the deepest relationship
231-
* an opportunity to scope the query that will fetch related resources
230+
* @param array|Closure $scope Should be called to give the deepest
231+
* relationship an opportunity to scope the query that will fetch related
232+
* resources
232233
* @param bool $linkage true if we just need the IDs of the related
233234
* resources and not their full data
234235
* @return mixed
235236
*/
236-
public function load(array $models, array $relationships, Closure $scope, bool $linkage): void;
237+
public function load(array $models, array $relationships, $scope, bool $linkage): void;
237238
}

src/Adapter/EloquentAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function paginate($query, int $limit, int $offset): void
192192
$query->take($limit)->skip($offset);
193193
}
194194

195-
public function load(array $models, array $relationships, Closure $scope, bool $linkage): void
195+
public function load(array $models, array $relationships, $scope, bool $linkage): void
196196
{
197197
// TODO: Find the relation on the model that we're after. If it's a
198198
// belongs-to relation, and we only need linkage, then we won't need

0 commit comments

Comments
 (0)