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,