From e7dccae8863a7e913e57eabe3d46963f945271ec Mon Sep 17 00:00:00 2001 From: gerritbot Date: Sun, 3 Apr 2022 22:15:33 +0200 Subject: [PATCH] Replace deprecated ApiBase::PARAM_ with IntegerDef ones The rest of ApiBase::PARAM_ will be done in separate patches Bug: T275455 Change-Id: I491d4306611f53ed19aa92e119de7b386ef6bda4 --- includes/ApiQueryLintErrors.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/ApiQueryLintErrors.php b/includes/ApiQueryLintErrors.php index 75931ae6..6b5c52bd 100644 --- a/includes/ApiQueryLintErrors.php +++ b/includes/ApiQueryLintErrors.php @@ -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',