From: Fomafix Date: Sun, 3 Feb 2019 17:08:40 +0000 (+0100) Subject: Title: Add null to @return type for getSubpage X-Git-Tag: 1.34.0-rc.0~2956^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Bar?a=commitdiff_plain;h=38acf509eedd81e76074162e38dd2318c0b08788;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {