X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FMimeMagic.php;h=6152d2262fc101d0ad29cb052c32de1e61a2a8e2;hp=f062d13514fa50cbd6ae6e97fc65df1198964841;hb=7507172e95721c6193d574e461f75dae1ff1d0f0;hpb=b8da5c83743ea31c6f73c063508384f114748537 diff --git a/includes/MimeMagic.php b/includes/MimeMagic.php index f062d13514..6152d2262f 100644 --- a/includes/MimeMagic.php +++ b/includes/MimeMagic.php @@ -28,14 +28,15 @@ class MimeMagic extends MimeAnalyzer { /** * Get an instance of this class * @return MimeMagic - * @deprecated since 1.28 get a MimeAnalyzer instance form MediaWikiServices + * @deprecated since 1.28 get a MimeAnalyzer instance from MediaWikiServices */ public static function singleton() { + wfDeprecated( __METHOD__, '1.28' ); // XXX: We know that the MimeAnalyzer is currently an instance of MimeMagic $instance = MediaWikiServices::getInstance()->getMimeAnalyzer(); Assert::postcondition( $instance instanceof MimeMagic, - __METHOD__ . ' should return an instance of ' . MimeMagic::class + __METHOD__ . ' should return an instance of ' . self::class ); return $instance; }