/** @var array Maps extension paths to info arrays */
private static $extensionInfo = null;
- /** @var int[][][] Cache for self::filterIDs() */
+ /** @var stdClass[][] Cache for self::filterIDs() */
private static $filterIDsCache = [];
/** $var array Map of web UI block messages to corresponding API messages and codes */
return;
}
- $queryValues = $this->getRequest()->getQueryValues();
+ $queryValues = $this->getRequest()->getQueryValuesOnly();
$badParams = [];
foreach ( $params as $param ) {
if ( $prefix !== 'noprefix' ) {
'integeroutofrange',
[ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ]
);
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->warnOrDie( $msg, $enforceLimits );
$value = $min;
}
'integeroutofrange',
[ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ]
);
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->warnOrDie( $msg, $enforceLimits );
$value = $botMax;
}
'integeroutofrange',
[ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ]
);
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->warnOrDie( $msg, $enforceLimits );
$value = $max;
}
*/
public function dieWithException( $exception, array $options = [] ) {
$this->dieWithError(
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->getErrorFormatter()->getMessageFromException( $exception, $options )
);
}
if ( $m ) {
$m = new ApiHelpParamValueMessage(
$value,
+ // @phan-suppress-next-line PhanTypeMismatchArgument
[ $m->getKey(), 'api-help-param-no-description' ],
$m->getParams(),
isset( $deprecatedValues[$value] )