Document that IContextSource::getTitle can return null

That can happen if wgTitle is null.

Change-Id: I3d8aab232d408e75afb8be82ca714bf5c4fe2427
This commit is contained in:
Marius Hoch 2014-04-24 19:53:20 +02:00
parent 80a8a8e85c
commit e2fbfb2f3b
4 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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 ) ) {

View file

@ -37,7 +37,7 @@ interface IContextSource {
/**
* Get the Title object
*
* @return Title
* @return Title|null
*/
public function getTitle();

View file

@ -131,7 +131,7 @@ class RequestContext implements IContextSource {
/**
* Get the Title object
*
* @return Title
* @return Title|null
*/
public function getTitle() {
if ( $this->title === null ) {