Merge "Add tablesUsed to RevisionStoreDbTest"
[lhc/web/wiklou.git] / includes / Preferences.php
index 37de2a5..26e28ba 100644 (file)
@@ -204,7 +204,7 @@ class Preferences {
        }
 
        /**
-        * @param User $user The User object
+        * @param User $user
         * @param IContextSource $context
         * @return array Text/links to display as key; $skinkey as value
         */
@@ -267,7 +267,7 @@ class Preferences {
        public static function getFormObject(
                $user,
                IContextSource $context,
-               $formClass = 'PreferencesForm',
+               $formClass = PreferencesForm::class,
                array $remove = []
        ) {
                $preferencesFactory = self::getDefaultPreferencesFactory();
@@ -303,6 +303,8 @@ class Preferences {
        /**
         * Handle the form submission if everything validated properly
         *
+        * @deprecated since 1.31, use PreferencesFactory
+        *
         * @param array $formData
         * @param PreferencesForm $form
         * @return bool|Status|string