diff --git a/includes/context/ContextSource.php b/includes/context/ContextSource.php index 9e5505917e9..4a3c2cbfa90 100644 --- a/includes/context/ContextSource.php +++ b/includes/context/ContextSource.php @@ -83,7 +83,7 @@ abstract class ContextSource implements IContextSource { * Get the Title object * * @since 1.18 - * @return Title + * @return Title|null */ public function getTitle() { return $this->getContext()->getTitle(); diff --git a/includes/context/DerivativeContext.php b/includes/context/DerivativeContext.php index f5616e04d30..32a650ff155 100644 --- a/includes/context/DerivativeContext.php +++ b/includes/context/DerivativeContext.php @@ -138,7 +138,7 @@ class DerivativeContext extends ContextSource { /** * Get the Title object * - * @return Title + * @return Title|null */ public function getTitle() { if ( !is_null( $this->title ) ) { diff --git a/includes/context/IContextSource.php b/includes/context/IContextSource.php index f892b025a5b..5534ee3028e 100644 --- a/includes/context/IContextSource.php +++ b/includes/context/IContextSource.php @@ -37,7 +37,7 @@ interface IContextSource { /** * Get the Title object * - * @return Title + * @return Title|null */ public function getTitle(); diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index 6f27a7ae82f..4291e4456b4 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -131,7 +131,7 @@ class RequestContext implements IContextSource { /** * Get the Title object * - * @return Title + * @return Title|null */ public function getTitle() { if ( $this->title === null ) {