Skip to content

Commit

Permalink
Changed documentation to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris-ll committed May 13, 2024
1 parent 0f42d40 commit 3d13b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wordpress-objects/Clarkson_Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string,mixed>
*/
public function jsonSerialize(): mixed {
public function jsonSerialize(): array {
$data['id'] = $this->get_id();
$data['link'] = $this->get_permalink();
$data['slug'] = $this->get_post_name();
Expand Down

0 comments on commit 3d13b05

Please sign in to comment.