Skip to content

Commit 3d13b05

Browse files
committed
Changed documentation to be more clear
1 parent 0f42d40 commit 3d13b05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wordpress-objects/Clarkson_Object.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,9 @@ public function has_term( $term ) {
650650
* If you want something else, then just overwrite it in your own WordPress object.
651651
*
652652
* We can't just return $this->_post, because these values will only return raw unfiltered data.
653+
* @return array<string,mixed>
653654
*/
654-
public function jsonSerialize(): mixed {
655+
public function jsonSerialize(): array {
655656
$data['id'] = $this->get_id();
656657
$data['link'] = $this->get_permalink();
657658
$data['slug'] = $this->get_post_name();

0 commit comments

Comments
 (0)