From 5d83eb900a852038d578b368d4e384ca96f668a3 Mon Sep 17 00:00:00 2001 From: Justin van Elst Date: Mon, 13 Mar 2023 11:42:16 +0100 Subject: [PATCH] fix return type for jsonSerialize() --- src/Wuunder/Api/Config/Config.php | 4 +--- src/Wuunder/Model/Model.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Wuunder/Api/Config/Config.php b/src/Wuunder/Api/Config/Config.php index 3072a55..fa2961b 100644 --- a/src/Wuunder/Api/Config/Config.php +++ b/src/Wuunder/Api/Config/Config.php @@ -33,10 +33,8 @@ public function __call($method, $args) /** * Adds together default and user input items - * - * @return array A full list of all the items that are set by user and default */ - public function jsonSerialize() + public function jsonSerialize(): mixed { return array_merge($this->defaultFields, $this->setFields); } diff --git a/src/Wuunder/Model/Model.php b/src/Wuunder/Model/Model.php index 9605c4f..3347b59 100644 --- a/src/Wuunder/Model/Model.php +++ b/src/Wuunder/Model/Model.php @@ -117,7 +117,7 @@ private function _underscore($name) return $result; } - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->data; }