Make Revision::__construct work with bad page ID
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 11 Jan 2018 15:43:18 +0000 (16:43 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 11 Jan 2018 16:03:48 +0000 (17:03 +0100)
commit4589f4d78183fcfde2009e217ea8524102c95a31
tree1fb80892bb8c983aa22745b5705e9db4f2702ebf
parentfded33d6deb75ecd50eb5ba8f1bea03106474308
Make Revision::__construct work with bad page ID

For backwards-copatibility, we need to be able to construct a Revision
object even for bad page IDs.

Bug: T184689
Change-Id: I18c823d7b72504447982364d581b34e98924b67f
includes/Revision.php
includes/Storage/RevisionStore.php
tests/phpunit/includes/RevisionTest.php