diff --git a/src/Models/Model.php b/src/Models/Model.php index efdfcde..43cd2c4 100644 --- a/src/Models/Model.php +++ b/src/Models/Model.php @@ -282,11 +282,11 @@ public function save() /** * Specify data which should be serialized to JSON * @link http://php.net/manual/en/jsonserializable.jsonserialize.php - * @return mixed data which can be serialized by json_encode, + * @return array data which can be serialized by json_encode, * which is a value of any type other than a resource. * @since 5.4.0 */ - public function jsonSerialize() + public function jsonSerialize(): array { return $this->attributes; }