X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiErrorFormatter.php;h=9dfd3705a5541418ce766a03bfa06b56d7689119;hb=e900893531e76fb8f80c1c9b5be459fd02862c3c;hp=8049cd84b983dd202dbcfcdee3e114cac6e14169;hpb=495f9b978eba7642ffcd699ca63a1767d117baf9;p=lhc%2Fweb%2Fwiklou.git 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 );