EditPage::getBaseRevision can return null. (fix phpdoc)
authoraddshore <addshorewiki@gmail.com>
Thu, 15 Feb 2018 10:08:20 +0000 (10:08 +0000)
committeraddshore <addshorewiki@gmail.com>
Thu, 15 Feb 2018 10:08:20 +0000 (10:08 +0000)
commit9f62f0a1d54902f9a5ed0de1fc3a39e17a3143f5
tree68bf3e1d44ae0453340d932fd1586c1e218b84ef
parentee56f00ddf0609082f8ae9a4dc3e6e1b6f54ddfd
EditPage::getBaseRevision can return null. (fix phpdoc)

If !$this->mBaseRevision then the code to populte $this->mBaseRevision
is run.
This code either calls Revision::newFromId or Revision::loadFromTimestamp
both of which are documented as being able to return null.
As a result EditPage::getBaseRevision can alos return null.

Bug: T187378
Change-Id: I60ad9ddcfbe6e1060cab1ad6aa2194c1a3406cbf
includes/EditPage.php