From 33c5a28250191676a372fda36e5f980c242495d5 Mon Sep 17 00:00:00 2001 From: Jonathan Flueren <11487762+JonOfUs@users.noreply.github.com> Date: Sun, 6 Nov 2022 20:19:30 +0100 Subject: [PATCH] Define return value of overriding jsonSerialize() Threw DEPRECATED warnings on php8.x systems --- lib/Db/SubscriptionChange/SubscriptionChangeEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/SubscriptionChange/SubscriptionChangeEntity.php b/lib/Db/SubscriptionChange/SubscriptionChangeEntity.php index 3e6d5f7..95ea037 100644 --- a/lib/Db/SubscriptionChange/SubscriptionChangeEntity.php +++ b/lib/Db/SubscriptionChange/SubscriptionChangeEntity.php @@ -18,7 +18,7 @@ class SubscriptionChangeEntity extends Entity implements JsonSerializable { $this->addType('subscribed','boolean'); } - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'id' => $this->id, 'url' => $this->url,