From 3230dc5ed44dffda854a71c80a589db4d0f6b724 Mon Sep 17 00:00:00 2001 From: Jasper Rooduijn Date: Thu, 16 Nov 2023 12:59:17 +0100 Subject: [PATCH] Match jsonSerializable interface. --- src/WordPress_Object/Clarkson_Object.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WordPress_Object/Clarkson_Object.php b/src/WordPress_Object/Clarkson_Object.php index 3a58a01..8271ae0 100644 --- a/src/WordPress_Object/Clarkson_Object.php +++ b/src/WordPress_Object/Clarkson_Object.php @@ -626,7 +626,7 @@ public function get_comments( array $args = array() ): array { * * We can't just return $this->_post, because these values will only return raw unfiltered data. */ - public function jsonSerialize() { + public function jsonSerialize(): mixed { $data = array(); $data['id'] = $this->get_id(); $data['link'] = $this->get_permalink();