X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiErrorFormatter.php;h=9dfd3705a5541418ce766a03bfa06b56d7689119;hp=8049cd84b983dd202dbcfcdee3e114cac6e14169;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=f79c9e6ca3c02090d6d56eaecb2ab90d4198b2b9 diff --git a/includes/api/ApiErrorFormatter.php b/includes/api/ApiErrorFormatter.php index 8049cd84b9..9dfd3705a5 100644 --- a/includes/api/ApiErrorFormatter.php +++ b/includes/api/ApiErrorFormatter.php @@ -26,6 +26,7 @@ * ApiResult. * @since 1.25 * @ingroup API + * @phan-file-suppress PhanUndeclaredMethod Undeclared methods in IApiMessage */ class ApiErrorFormatter { /** @var Title Dummy title to silence warnings from MessageCache::parse() */ @@ -236,6 +237,7 @@ class ApiErrorFormatter { */ public function formatException( $exception, array $options = [] ) { return $this->formatMessage( + // @phan-suppress-next-line PhanTypeMismatchArgument $this->getMessageFromException( $exception, $options ), $options['format'] ?? null );