summaryrefslogtreecommitdiffstats
path: root/lib/public/Federation/Exceptions/BadRequestException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Federation/Exceptions/BadRequestException.php')
-rw-r--r--lib/public/Federation/Exceptions/BadRequestException.php7
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'
];