Skip to content

Commit

Permalink
Match jsonSerializable interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperrooduijn committed Nov 16, 2023
1 parent d48bc7c commit 3230dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WordPress_Object/Clarkson_Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public function get_comments( array $args = array() ): array {
*
* We can't just return $this->_post, because these values will only return raw unfiltered data.
*/
public function jsonSerialize() {
public function jsonSerialize(): mixed {
$data = array();
$data['id'] = $this->get_id();
$data['link'] = $this->get_permalink();
Expand Down

0 comments on commit 3230dc5

Please sign in to comment.