diff options
Diffstat (limited to 'matrix-specification/Responses/WellKnownMatrixClientGetResponse.php')
| -rw-r--r-- | matrix-specification/Responses/WellKnownMatrixClientGetResponse.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/matrix-specification/Responses/WellKnownMatrixClientGetResponse.php b/matrix-specification/Responses/WellKnownMatrixClientGetResponse.php index 769268f..2a0c6d1 100644 --- a/matrix-specification/Responses/WellKnownMatrixClientGetResponse.php +++ b/matrix-specification/Responses/WellKnownMatrixClientGetResponse.php @@ -3,16 +3,17 @@ namespace Matrix\Responses; use Matrix\Data\DiscoveryInformation; +use Matrix\Response; -class WellKnownMatrixClientGetResponse implements \JsonSerializable +class WellKnownMatrixClientGetResponse extends Response { public function __construct( private DiscoveryInformation $discoveryInformation, ) {} - public function jsonSerialize(): array + public function getBody(): array { - return $this->discoveryInformation; + return $this->discoveryInformation->jsonSerialize(); } } |
