Undo typehint

This commit is contained in:
Toby Zerner 2021-07-22 12:33:40 +09:30
parent 4fe4efc036
commit 1ae0313575
2 changed files with 5 additions and 4 deletions

View File

@ -227,11 +227,12 @@ interface AdapterInterface
*
* @param array $models
* @param array $relationships
* @param Closure $scope Should be called to give the deepest relationship
* an opportunity to scope the query that will fetch related resources
* @param array|Closure $scope Should be called to give the deepest
* relationship an opportunity to scope the query that will fetch related
* resources
* @param bool $linkage true if we just need the IDs of the related
* resources and not their full data
* @return mixed
*/
public function load(array $models, array $relationships, Closure $scope, bool $linkage): void;
public function load(array $models, array $relationships, $scope, bool $linkage): void;
}

View File

@ -192,7 +192,7 @@ class EloquentAdapter implements AdapterInterface
$query->take($limit)->skip($offset);
}
public function load(array $models, array $relationships, Closure $scope, bool $linkage): void
public function load(array $models, array $relationships, $scope, bool $linkage): void
{
// TODO: Find the relation on the model that we're after. If it's a
// belongs-to relation, and we only need linkage, then we won't need