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); }