From 80e44ab9af257d0abda190586779617723a0fae2 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Wed, 18 Apr 2012 12:51:40 +0200 Subject: [PATCH] fix return value Change-Id: Ic6b664b3bb90e98781e2e6e8a5f2db3280181ea3 --- includes/Content.php | 3 ++- includes/WikiPage.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Content.php b/includes/Content.php index b696e29dc3..5855100b0a 100644 --- a/includes/Content.php +++ b/includes/Content.php @@ -212,7 +212,7 @@ abstract class Content { * return $this. That is, $copy === $original may be true, but only for imutable content * objects. * - * @return a copy of this Content object + * @return Content. A copy of this object */ public abstract function copy( ); @@ -222,6 +222,7 @@ abstract class Content { * * @param $hasLinks Bool: if it is known whether this content contains links, provide this information here, * to avoid redundant parsing to find out. + * @return boolean */ public abstract function isCountable( $hasLinks = null ) ; diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 17ce936aa2..3088131a1a 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -448,7 +448,7 @@ class WikiPage extends Page { if ( $this->mLastRevision ) { return $this->mLastRevision->getContent( $audience ); } - return false; + return null; } /** -- 2.20.1