From 71bc360c3908e1ac9aba754abc4117219cdf11c1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 25 Nov 2022 23:55:35 +0100 Subject: [PATCH] test fixes --- Models/Comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/Comment.php b/Models/Comment.php index cc780bb..15c25ad 100755 --- a/Models/Comment.php +++ b/Models/Comment.php @@ -26,7 +26,7 @@ use Modules\Media\Models\Media; * @link https://karaka.app * @since 1.0.0 */ -class Comment +class Comment implements \JsonSerializable { /** * ID. @@ -160,7 +160,7 @@ class Comment /** * {@inheritdoc} */ - public function jsonSerialize() : array + public function jsonSerialize() : mixed { return [ 'id' => $this->id,