Skip to content

Commit

Permalink
added mixed return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris-ll committed May 2, 2024
1 parent 955a80f commit 0f42d40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wordpress-objects/Clarkson_Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0f42d40

Please sign in to comment.