From 3d13b056183d29e11ab43fe160c52f18ec51b136 Mon Sep 17 00:00:00 2001 From: floris-ll Date: Mon, 13 May 2024 09:44:06 +0200 Subject: [PATCH] Changed documentation to be more clear --- wordpress-objects/Clarkson_Object.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wordpress-objects/Clarkson_Object.php b/wordpress-objects/Clarkson_Object.php index 6e05204..442e159 100644 --- a/wordpress-objects/Clarkson_Object.php +++ b/wordpress-objects/Clarkson_Object.php @@ -650,8 +650,9 @@ public function has_term( $term ) { * If you want something else, then just overwrite it in your own WordPress object. * * We can't just return $this->_post, because these values will only return raw unfiltered data. + * @return array */ - public function jsonSerialize(): mixed { + public function jsonSerialize(): array { $data['id'] = $this->get_id(); $data['link'] = $this->get_permalink(); $data['slug'] = $this->get_post_name();