X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiBase.php;h=7518008f9df1da3b20e84872934711be4978f11b;hb=2c306b5fdf66ec223afd1f3b984e3693942e33fe;hp=056d10c3c98ad3996e8a2efed4969b2ef9254c9d;hpb=f0c24143231d90ff409ddee62c853e8b6e1522bb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 056d10c3c9..7518008f9d 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -1585,6 +1585,7 @@ abstract class ApiBase extends ContextSource { 'integeroutofrange', [ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ] ); + // @phan-suppress-next-line PhanTypeMismatchArgument $this->warnOrDie( $msg, $enforceLimits ); $value = $min; } @@ -1606,6 +1607,7 @@ abstract class ApiBase extends ContextSource { 'integeroutofrange', [ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ] ); + // @phan-suppress-next-line PhanTypeMismatchArgument $this->warnOrDie( $msg, $enforceLimits ); $value = $botMax; } @@ -1616,6 +1618,7 @@ abstract class ApiBase extends ContextSource { 'integeroutofrange', [ 'min' => $min, 'max' => $max, 'botMax' => $botMax ?: $max ] ); + // @phan-suppress-next-line PhanTypeMismatchArgument $this->warnOrDie( $msg, $enforceLimits ); $value = $max; } @@ -2022,6 +2025,7 @@ abstract class ApiBase extends ContextSource { */ public function dieWithException( $exception, array $options = [] ) { $this->dieWithError( + // @phan-suppress-next-line PhanTypeMismatchArgument $this->getErrorFormatter()->getMessageFromException( $exception, $options ) ); } @@ -2464,6 +2468,7 @@ abstract class ApiBase extends ContextSource { if ( $m ) { $m = new ApiHelpParamValueMessage( $value, + // @phan-suppress-next-line PhanTypeMismatchArgument [ $m->getKey(), 'api-help-param-no-description' ], $m->getParams(), isset( $deprecatedValues[$value] )