Merge "Api: Avoid type error in AbuseLogPrivateDetails"

This commit is contained in:
jenkins-bot 2024-08-23 15:00:36 +00:00 committed by Gerrit Code Review
commit b231116380

View file

@ -124,6 +124,7 @@ class AbuseLogPrivateDetails extends ApiBase {
'reason' => [
ParamValidator::PARAM_TYPE => 'string',
ParamValidator::PARAM_REQUIRED => $this->getConfig()->get( 'AbuseFilterPrivateDetailsForceReason' ),
ParamValidator::PARAM_DEFAULT => '',
]
];
}