Add wfDeprecated() call to MimeMagic::singleton()
[lhc/web/wiklou.git] / includes / MimeMagic.php
index f062d13..6152d22 100644 (file)
@@ -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;
        }