diff --git a/helper.php b/helper.php index d74f3d58..d5946fb2 100644 --- a/helper.php +++ b/helper.php @@ -14,6 +14,7 @@ //------------------------- use think\Cache; +use think\Collection; use think\Config; use think\Cookie; use think\Db; @@ -23,7 +24,6 @@ use think\exception\HttpResponseException; use think\Lang; use think\Loader; use think\Log; -use think\model\Collection; use think\Request; use think\Response; use think\Session; diff --git a/library/think/model/relation/MorphMany.php b/library/think/model/relation/MorphMany.php index c4c23df7..68eb0834 100644 --- a/library/think/model/relation/MorphMany.php +++ b/library/think/model/relation/MorphMany.php @@ -160,6 +160,7 @@ class MorphMany extends Relation * @param array $where 关联预查询条件 * @param string $relation 关联名 * @param string $subRelation 子关联 + * @param \Closure $closure 闭包 * @return array */ protected function eagerlyMorphToMany($where, $relation, $subRelation = '', $closure = false)