Fix @return type hint for Title::newFromID
authorOri Livneh <ori@wikimedia.org>
Thu, 18 Apr 2013 21:57:03 +0000 (14:57 -0700)
committerOri Livneh <ori@wikimedia.org>
Thu, 18 Apr 2013 21:57:03 +0000 (14:57 -0700)
Change-Id: I7f9ff81b91dcabb68c9c86eedf391b3e6160c6d4

includes/Title.php

index d0ac97b..6acffa0 100644 (file)
@@ -225,7 +225,7 @@ class Title {
         *
         * @param int $id the page_id corresponding to the Title to create
         * @param int $flags use Title::GAID_FOR_UPDATE to use master
-        * @return Title the new object, or NULL on an error
+        * @return Title|null the new object, or NULL on an error
         */
        public static function newFromID( $id, $flags = 0 ) {
                $db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_SLAVE );