We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f42d40 commit 3d13b05Copy full SHA for 3d13b05
wordpress-objects/Clarkson_Object.php
@@ -650,8 +650,9 @@ public function has_term( $term ) {
650
* If you want something else, then just overwrite it in your own WordPress object.
651
*
652
* We can't just return $this->_post, because these values will only return raw unfiltered data.
653
+ * @return array<string,mixed>
654
*/
- public function jsonSerialize(): mixed {
655
+ public function jsonSerialize(): array {
656
$data['id'] = $this->get_id();
657
$data['link'] = $this->get_permalink();
658
$data['slug'] = $this->get_post_name();
0 commit comments