From 8a8dd4d151e4efe99bacef3ad16e4dd3a7db8204 Mon Sep 17 00:00:00 2001 From: Juan Diaz Date: Fri, 20 Jan 2023 02:28:57 -0500 Subject: [PATCH] =?UTF-8?q?Refactor:=20Se=20a=C3=B1ade=20return=20para=20c?= =?UTF-8?q?ompatibilidad=20>=3Dphp7.3=20a=208.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Models/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }