This commit is contained in:
2021-09-28 18:54:07 +08:00
parent 27e87a461e
commit 079cd12399
18 changed files with 659 additions and 678 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ class HasCount extends HasBase
}
/**
* @return array|null|ActiveRecord
* @return array|null|ModelInterface
* @throws Exception
*/
public function get(): array|ActiveRecord|null
public function get(): array|ModelInterface|null
{
return $this->_relation->count($this->model::className(), $this->value);
}