Documentation fixes for Password API-related changes
authorKunal Mehta <legoktm@gmail.com>
Tue, 29 Jul 2014 05:15:58 +0000 (22:15 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Tue, 29 Jul 2014 05:17:26 +0000 (05:17 +0000)
A few @since 1.23 --> 1.24

Change-Id: I55d00ab9c3f9dae96ed804a22f19d713879663fa
Follows-Up: I0a9c972931a0eff0cfb2619cef3ddffd03710285

includes/User.php
includes/password/PasswordFactory.php
tests/phpunit/MediaWikiPasswordTestCase.php

index 73d4959..2aabf24 100644 (file)
@@ -4614,10 +4614,10 @@ class User implements IDBAccessObject {
         * @param bool|string $salt Optional salt, may be random or the user ID.
         *  If unspecified or false, will generate one automatically
         * @return string Password hash
-        * @deprecated since 1.23, use Password class
+        * @deprecated since 1.24, use Password class
         */
        public static function crypt( $password, $salt = false ) {
-               wfDeprecated( __METHOD__, '1.23' );
+               wfDeprecated( __METHOD__, '1.24' );
                $hash = self::getPasswordFactory()->newFromPlaintext( $password );
                return $hash->toString();
        }
@@ -4631,10 +4631,10 @@ class User implements IDBAccessObject {
         * @param string|bool $userId User ID for old-style password salt
         *
         * @return bool
-        * @deprecated since 1.23, use Password class
+        * @deprecated since 1.24, use Password class
         */
        public static function comparePasswords( $hash, $password, $userId = false ) {
-               wfDeprecated( __METHOD__, '1.23' );
+               wfDeprecated( __METHOD__, '1.24' );
 
                // Check for *really* old password hashes that don't even have a type
                // The old hash format was just an md5 hex hash, with no type information
index 7aa78a7..70b7656 100644 (file)
@@ -29,7 +29,7 @@ final class PasswordFactory {
        /**
         * The default PasswordHash type
         *
-*@var string
+        * @var string
         * @see PasswordFactory::setDefaultType
         */
        private $default = '';
index a4cec09..edf944b 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /**
- * @since 1.23
+ * @since 1.24
  */
 abstract class MediaWikiPasswordTestCase extends MediaWikiTestCase {
        /**