From 2386148b8f048ba40d9f26cc97898bdcdc778ea2 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 13 Dec 2025 16:27:53 +0100 Subject: matrix specification split --- .../Responses/WellKnownMatrixSupportGetResponse.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'matrix-specification/Responses/WellKnownMatrixSupportGetResponse.php') diff --git a/matrix-specification/Responses/WellKnownMatrixSupportGetResponse.php b/matrix-specification/Responses/WellKnownMatrixSupportGetResponse.php index f38e2b0..bdd971a 100644 --- a/matrix-specification/Responses/WellKnownMatrixSupportGetResponse.php +++ b/matrix-specification/Responses/WellKnownMatrixSupportGetResponse.php @@ -3,8 +3,9 @@ namespace Matrix\Responses; use Matrix\Data\Contact; +use Matrix\Response; -class WellKnownMatrixSupportGetResponse implements \JsonSerializable +class WellKnownMatrixSupportGetResponse extends Response { /** * @param Contact[] $contacts @@ -23,11 +24,11 @@ class WellKnownMatrixSupportGetResponse implements \JsonSerializable } } - public function jsonSerialize(): array + public function getBody(): array { return array_filter([ "contacts" => $this->contacts, "support_page" => $this->supportPage, - ], "is_null"); + ], fn ($value) => ! is_null($value)); } } -- cgit v1.2.3