Skip to content

Commit f2ac2cf

Browse files
Merge pull request #266 from level-level/revert_pr_263
Revert #263, fixes jsonSerialize fatal error on php 7.4 or lower
2 parents dd4c0f2 + 8067a2d commit f2ac2cf

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
@@ -627,7 +627,7 @@ public function get_comments( array $args = array() ): array {
627627
* We can't just return $this->_post, because these values will only return raw unfiltered data.
628628
*/
629629
#[\ReturnTypeWillChange]
630-
public function jsonSerialize(): mixed {
630+
public function jsonSerialize() {
631631
$data = array();
632632
$data['id'] = $this->get_id();
633633
$data['link'] = $this->get_permalink();

0 commit comments

Comments
 (0)