Replace deprecated ApiBase::PARAM_ with IntegerDef ones

The rest of ApiBase::PARAM_  will be done in separate patches

Bug: T275455
Change-Id: I491d4306611f53ed19aa92e119de7b386ef6bda4
This commit is contained in:
gerritbot 2022-04-03 22:15:33 +02:00
parent 9300b8acd2
commit e7dccae886

View file

@ -25,6 +25,7 @@ use ApiQuery;
use ApiQueryBase;
use ApiResult;
use Title;
use Wikimedia\ParamValidator\TypeDef\IntegerDef;
class ApiQueryLintErrors extends ApiQueryBase {
/**
@ -123,9 +124,9 @@ class ApiQueryLintErrors extends ApiQueryBase {
'limit' => [
ApiBase::PARAM_DFLT => 10,
ApiBase::PARAM_TYPE => 'limit',
ApiBase::PARAM_MIN => 1,
ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1,
ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
IntegerDef::PARAM_MIN => 1,
IntegerDef::PARAM_MAX => ApiBase::LIMIT_BIG1,
IntegerDef::PARAM_MAX2 => ApiBase::LIMIT_BIG2
],
'namespace' => [
ApiBase::PARAM_TYPE => 'namespace',