mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 23:44:17 +00:00
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:
parent
9300b8acd2
commit
e7dccae886
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue