Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/public/Federation/Exceptions/BadRequestException.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
* @since 14.0.0
*/
class BadRequestException extends HintException {
/**
* @var string[] $parameterList
*/
private $parameterList;

/**
Expand All @@ -55,7 +58,7 @@ public function __construct(array $missingParameters) {
*
* @since 14.0.0
*
* @return array
* @return array{message: string, validationErrors: array{message: string, name: string}[]}
*/
public function getReturnMessage() {
$result = [
Expand All @@ -65,7 +68,7 @@ public function getReturnMessage() {
];

foreach ($this->parameterList as $missingParameter) {
$result['validationErrors'] = [
$result['validationErrors'][] = [
'name' => $missingParameter,
'message' => 'NOT_FOUND'
];
Expand Down