Skip to content

Commit 0f42d40

Browse files
committed
added mixed return type
1 parent 955a80f commit 0f42d40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wordpress-objects/Clarkson_Object.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,7 @@ public function has_term( $term ) {
651651
*
652652
* We can't just return $this->_post, because these values will only return raw unfiltered data.
653653
*/
654-
#[\ReturnTypeWillChange]
655-
public function jsonSerialize() {
654+
public function jsonSerialize(): mixed {
656655
$data['id'] = $this->get_id();
657656
$data['link'] = $this->get_permalink();
658657
$data['slug'] = $this->get_post_name();

0 commit comments

Comments
 (0)