Improve type hint
authorjeroendedauw <jeroendedauw@gmail.com>
Wed, 28 Nov 2012 19:37:05 +0000 (20:37 +0100)
committerjeroendedauw <jeroendedauw@gmail.com>
Wed, 28 Nov 2012 19:37:14 +0000 (20:37 +0100)
Eclipse and phpstorm where showing 'User' as return type before, which causes me to not check for false somewhere and thus fatals happening :)

Change-Id: Ibd5b5598f05e6b08481ad65060c7cae18762dc4e

includes/User.php

index f55281e..507b254 100644 (file)
@@ -370,7 +370,7 @@ class User {
         *    User::getCanonicalName(), except that true is accepted as an alias
         *    for 'valid', for BC.
         *
-        * @return User object, or false if the username is invalid
+        * @return User|bool User object, or false if the username is invalid
         *    (e.g. if it contains illegal characters or is an IP address). If the
         *    username is not present in the database, the result will be a user object
         *    with a name, zero user ID and default settings.