Skip to content

Commit 1e7f709

Browse files
Merge pull request #263 from jasperrooduijn/php82
Match jsonSerializable interface.
2 parents d48bc7c + 3230dc5 commit 1e7f709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WordPress_Object/Clarkson_Object.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ public function get_comments( array $args = array() ): array {
626626
*
627627
* We can't just return $this->_post, because these values will only return raw unfiltered data.
628628
*/
629-
public function jsonSerialize() {
629+
public function jsonSerialize(): mixed {
630630
$data = array();
631631
$data['id'] = $this->get_id();
632632
$data['link'] = $this->get_permalink();

0 commit comments

Comments
 (0)