From 38acf509eedd81e76074162e38dd2318c0b08788 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 3 Feb 2019 18:08:40 +0100 Subject: [PATCH] Title: Add null to @return type for getSubpage Title::makeTitleSafe can return null on an invalid title. Therefor Title::getSubpage can also return null on an error. Change-Id: I8f7d5125bd8bd609b6120b0f7682c6e519063476 --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 6ada9b309d..f5904e2a05 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1835,7 +1835,7 @@ class Title implements LinkTarget, IDBAccessObject { * @endcode * * @param string $text The subpage name to add to the title - * @return Title Subpage title + * @return Title|null Subpage title, or null on an error * @since 1.20 */ public function getSubpage( $text ) { -- 2.20.1