Title: Add null to @return type for getSubpage
authorFomafix <fomafix@googlemail.com>
Sun, 3 Feb 2019 17:08:40 +0000 (18:08 +0100)
committerFomafix <fomafix@googlemail.com>
Sun, 3 Feb 2019 17:11:12 +0000 (18:11 +0100)
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

index 6ada9b3..f5904e2 100644 (file)
@@ -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 ) {