* 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() */
*/
public function formatException( $exception, array $options = [] ) {
return $this->formatMessage(
+ // @phan-suppress-next-line PhanTypeMismatchArgument
$this->getMessageFromException( $exception, $options ),
$options['format'] ?? null
);