diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-02-10 22:49:27 +0100 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-02-10 22:56:32 +0100 |
commit | b271096495cdcea1b743a572fc73cdb830fbfd25 (patch) | |
tree | d412a44fb5a3a0fba577e3192069e74bffe33b66 /lib | |
parent | e0946a1608283bd376f439906c50f3a4eb810839 (diff) | |
download | nextcloud-server-b271096495cdcea1b743a572fc73cdb830fbfd25.tar.gz nextcloud-server-b271096495cdcea1b743a572fc73cdb830fbfd25.zip |
Fix OCM validation errors
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Federation/Exceptions/BadRequestException.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/public/Federation/Exceptions/BadRequestException.php b/lib/public/Federation/Exceptions/BadRequestException.php index 8054c0e89f0..bc8b5c7b724 100644 --- a/lib/public/Federation/Exceptions/BadRequestException.php +++ b/lib/public/Federation/Exceptions/BadRequestException.php @@ -32,6 +32,9 @@ use OCP\HintException; * @since 14.0.0 */ class BadRequestException extends HintException { + /** + * @var string[] $parameterList + */ private $parameterList; /** @@ -55,7 +58,7 @@ class BadRequestException extends HintException { * * @since 14.0.0 * - * @return array + * @return array{message: string, validationErrors: array{message: string, name: string}[]} */ public function getReturnMessage() { $result = [ @@ -65,7 +68,7 @@ class BadRequestException extends HintException { ]; foreach ($this->parameterList as $missingParameter) { - $result['validationErrors'] = [ + $result['validationErrors'][] = [ 'name' => $missingParameter, 'message' => 'NOT_FOUND' ]; |