Skip to content

Commit

Permalink
Define return value of overriding jsonSerialize()
Browse files Browse the repository at this point in the history
Threw DEPRECATED warnings on php8.x systems
  • Loading branch information
JonOfUs authored and thrillfall committed Nov 8, 2022
1 parent bfb3799 commit 33c5a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/SubscriptionChange/SubscriptionChangeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct() {
$this->addType('subscribed','boolean');
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return [
'id' => $this->id,
'url' => $this->url,
Expand Down

0 comments on commit 33c5a28

Please sign in to comment.