dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca31b7f
)
Title: Add null to @return type for getSubpage
author
Fomafix
<fomafix@googlemail.com>
Sun, 3 Feb 2019 17:08:40 +0000
(18:08 +0100)
committer
Fomafix
<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
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
6ada9b3
..
f5904e2
100644
(file)
--- 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 ) {