Skip to content

Commit

Permalink
Merge pull request #263 from jasperrooduijn/php82
Browse files Browse the repository at this point in the history
Match jsonSerializable interface.
  • Loading branch information
NielsdeBlaauw authored Nov 16, 2023
2 parents d48bc7c + 3230dc5 commit 1e7f709
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 1e7f709

Please sign in to comment.