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

Change-Id: I4c7c16f8b3380cdaf32fbedc9d33f12b14050774
This commit is contained in:
Abijeet authored and jenkins-bot committed 2021-11-16 13:56:49 +00:00
1 parent 1c3098189f
commit da4d965739
3 files changed
+11 -7

No files matched your search

+2 -1
View File
@@ -19,6 +19,7 @@
*/
use MediaWiki\User\UserOptionsManager;
use Wikimedia\ParamValidator\ParamValidator;
/**
* @ingroup API
@@ -83,7 +84,7 @@ class ApiULSSetLanguage extends ApiBase {
public function getAllowedParams() {
return [
'languagecode' => [
ApiBase::PARAM_REQUIRED => true,
ParamValidator::PARAM_REQUIRED => true,
]
];
}