From 0f42d40d5c3f7be6ee0ea25241d6082b770b1141 Mon Sep 17 00:00:00 2001 From: floris-ll Date: Thu, 2 May 2024 13:19:39 +0200 Subject: [PATCH] added mixed return type --- wordpress-objects/Clarkson_Object.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wordpress-objects/Clarkson_Object.php b/wordpress-objects/Clarkson_Object.php index fe230bf..6e05204 100644 --- a/wordpress-objects/Clarkson_Object.php +++ b/wordpress-objects/Clarkson_Object.php @@ -651,8 +651,7 @@ public function has_term( $term ) { * * We can't just return $this->_post, because these values will only return raw unfiltered data. */ - #[\ReturnTypeWillChange] - public function jsonSerialize() { + public function jsonSerialize(): mixed { $data['id'] = $this->get_id(); $data['link'] = $this->get_permalink(); $data['slug'] = $this->get_post_name();