Replace usage of ApiBase::PARAM_* with ParamValidator::PARAM_*

Change-Id: I4c7c16f8b3380cdaf32fbedc9d33f12b14050774
This commit is contained in:
Abijeet
2021-11-16 12:37:36 +05:30
committed by jenkins-bot
parent 1c3098189f
commit da4d965739
3 changed files with 11 additions and 7 deletions

View File

@@ -19,6 +19,7 @@
*/
use MediaWiki\Languages\LanguageNameUtils;
use Wikimedia\ParamValidator\ParamValidator;
/**
* @ingroup API
@@ -66,8 +67,8 @@ class ApiULSLocalization extends ApiBase {
public function getAllowedParams() {
return [
'language' => [
ApiBase::PARAM_REQUIRED => true,
ApiBase::PARAM_TYPE => 'string',
ParamValidator::PARAM_REQUIRED => true,
ParamValidator::PARAM_TYPE => 'string',
],
];
}