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/ClientUserIdFilterPostResponse.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'matrix-specification/Responses/ClientUserIdFilterPostResponse.php') diff --git a/matrix-specification/Responses/ClientUserIdFilterPostResponse.php b/matrix-specification/Responses/ClientUserIdFilterPostResponse.php index ed7ba37..0a5d062 100644 --- a/matrix-specification/Responses/ClientUserIdFilterPostResponse.php +++ b/matrix-specification/Responses/ClientUserIdFilterPostResponse.php @@ -2,18 +2,23 @@ namespace Matrix\Responses; -class ClientUserIdFilterPostResponse implements \JsonSerializable +use Matrix\Response; + +class ClientUserIdFilterPostResponse extends Response { public function __construct( private string $filterId, ) { if (str_starts_with($filterId, "{")) { - throw new \InvalidArgumentException("filterId cannot start with a { as this character is used to determine if the filter provided is inline JSON or a previously declared filter by homeservers on some APIs"); + throw new \InvalidArgumentException( + "filterId cannot start with a { as this character is used to determine if the filter provided is inline JSON " . + "or a previously declared filter by homeservers on some APIs" + ); } } - public function jsonSerialize(): array + public function getBody(): array { return [ "filter_id" => $this->filterId, -- cgit v1.2.3