X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevisionList.php;h=b0bc60a18858132ce0c1bd9e1dc19949b7cd6111;hb=78ea2b7a4f40031b98356723c9f37cd6599fe454;hp=53cf6998a869d423c443ede30c65d5935eacdca0;hpb=c31df03dc137a791fde75f71c183aaa4277092a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RevisionList.php b/includes/RevisionList.php index 53cf6998a8..b0bc60a188 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -21,6 +21,8 @@ */ use MediaWiki\MediaWikiServices; +use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IDatabase; /** * List for revision table items for a single page @@ -35,7 +37,7 @@ abstract class RevisionListBase extends ContextSource implements Iterator { /** @var ResultWrapper|bool */ protected $res; - /** @var bool|object */ + /** @var bool|Revision */ protected $current; /** @@ -114,7 +116,7 @@ abstract class RevisionListBase extends ContextSource implements Iterator { } public function key() { - return $this->res ? $this->res->key(): 0; + return $this->res ? $this->res->key() : 0; } public function valid() {