From 0bb7a68398499c81c19f5c4fbb3c2d0912cef8e5 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Thu, 18 Apr 2013 14:57:03 -0700 Subject: [PATCH] Fix @return type hint for Title::newFromID Change-Id: I7f9ff81b91dcabb68c9c86eedf391b3e6160c6d4 --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index d0ac97bac8..6acffa0a69 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 ); -- 2.20.1