&& $this->mPageId !== $this->mTitle->getArticleID()
) {
throw new InvalidArgumentException(
- 'The given Title does not belong to page ID ' . $this->mPageId
+ 'The given Title does not belong to page ID ' . $this->mPageId .
+ ' but actually belongs to ' . $this->mTitle->getArticleID()
);
}
}
}
/**
+ * @throws RevisionAccessException if the size was unknown and could not be calculated.
* @return string The nominal revision size, never null. May be computed on the fly.
*/
public function getSize() {
}
/**
+ * @throws RevisionAccessException if the hash was unknown and could not be calculated.
* @return string The revision hash, never null. May be computed on the fly.
*/
public function getSha1() {