From 63d58218e48feaadf30f17738c355adc94339b40 Mon Sep 17 00:00:00 2001 From: as2252258 Date: Thu, 28 Apr 2022 03:24:58 +0800 Subject: [PATCH] modify mysql result --- HasMany.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HasMany.php b/HasMany.php index 75ea3a7..e6f238d 100644 --- a/HasMany.php +++ b/HasMany.php @@ -37,10 +37,10 @@ class HasMany extends HasBase } /** - * @return array|null|ModelInterface + * @return array|null|Collection * @throws Exception */ - public function get(): array|ModelInterface|null + public function get(): array|Collection|null { return $this->_relation->get($this->model::className(), $this->value); }