diff options
Diffstat (limited to 'matrix-specification/Responses')
| -rw-r--r-- | matrix-specification/Responses/ClientKeysUploadPostResponse.php | 2 | ||||
| -rw-r--r-- | matrix-specification/Responses/ClientRegisterPostResponse.php | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/matrix-specification/Responses/ClientKeysUploadPostResponse.php b/matrix-specification/Responses/ClientKeysUploadPostResponse.php index 3d335e4..1df917a 100644 --- a/matrix-specification/Responses/ClientKeysUploadPostResponse.php +++ b/matrix-specification/Responses/ClientKeysUploadPostResponse.php @@ -20,7 +20,7 @@ class ClientKeysUploadPostResponse extends Response public function getBody(): array { return [ - "one_time_keys_counts" => $this->oneTimeKeyCounts, + "one_time_key_counts" => $this->oneTimeKeyCounts, ]; } } diff --git a/matrix-specification/Responses/ClientRegisterPostResponse.php b/matrix-specification/Responses/ClientRegisterPostResponse.php index 6ed65ce..2b6dabe 100644 --- a/matrix-specification/Responses/ClientRegisterPostResponse.php +++ b/matrix-specification/Responses/ClientRegisterPostResponse.php @@ -17,12 +17,16 @@ class ClientRegisterPostResponse extends Response ) {} - public function validateRequired(ClientRegisterPostRequest $request): void + public function validateRequired(/*?ClientRegisterPostRequest $request*/): void { + /* if (is_null($request)) { + return; + } + $requestBody = $request->getBody(); if ($requestBody["inhibit_login"] === false) { # TODO: validate - } + } */ } public function getBody(): array |
