Umherirrender has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/399915 )
Change subject: Change doc type from DatabaseBase to IDatabase
......................................................................
Change doc type from DatabaseBase to IDatabase
Change-Id: Ie1dcfa1b3aad084df2c3a5d6d48afe13e8ff31e3
---
M cli/wm-scripts/bv2013/voterList.php
M cli/wm-scripts/bv2015/voterList.php
M cli/wm-scripts/bv2017/voterList.php
M includes/jobs/PopulateVoterListJob.php
M includes/main/Context.php
M includes/pages/CreatePage.php
6 files changed, 7 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll
refs/changes/15/399915/1
diff --git a/cli/wm-scripts/bv2013/voterList.php
b/cli/wm-scripts/bv2013/voterList.php
index 3b5c144..3a486eb 100644
--- a/cli/wm-scripts/bv2013/voterList.php
+++ b/cli/wm-scripts/bv2013/voterList.php
@@ -120,7 +120,7 @@
}
/**
- * @param IDatabase $db
+ * @param \Wikimedia\Rdbms\IDatabase $db
* @param string[] $userNames
* @return array
*/
diff --git a/cli/wm-scripts/bv2015/voterList.php
b/cli/wm-scripts/bv2015/voterList.php
index a772c51..1f0ada2 100644
--- a/cli/wm-scripts/bv2015/voterList.php
+++ b/cli/wm-scripts/bv2015/voterList.php
@@ -94,7 +94,7 @@
}
/**
- * @param IDatabase $db
+ * @param \Wikimedia\Rdbms\IDatabase $db
* @param string[] $userNames
* @return array
*/
diff --git a/cli/wm-scripts/bv2017/voterList.php
b/cli/wm-scripts/bv2017/voterList.php
index 08b9a7f..a5e31e3 100644
--- a/cli/wm-scripts/bv2017/voterList.php
+++ b/cli/wm-scripts/bv2017/voterList.php
@@ -94,7 +94,7 @@
}
/**
- * @param IDatabase $db
+ * @param \Wikimedia\Rdbms\IDatabase $db
* @param string[] $userNames
* @return array
*/
diff --git a/includes/jobs/PopulateVoterListJob.php
b/includes/jobs/PopulateVoterListJob.php
index 66ec79d..6a40f17 100644
--- a/includes/jobs/PopulateVoterListJob.php
+++ b/includes/jobs/PopulateVoterListJob.php
@@ -1,6 +1,7 @@
<?php
use \MediaWiki\MediaWikiServices;
+use Wikimedia\Rdbms\IDatabase;
/**
* Job for populating the voter list for an election.
diff --git a/includes/main/Context.php b/includes/main/Context.php
index f8e617d..1b91535 100644
--- a/includes/main/Context.php
+++ b/includes/main/Context.php
@@ -272,7 +272,7 @@
* Get a database object, or throw an exception if the current store
object
* does not support database operations.
* @param int $index DB_MASTER or DB_REPLICA
- * @return DatabaseBase
+ * @return \Wikimedia\Rdbms\IDatabase
*/
function getDB( $index = DB_MASTER ) {
return $this->getStore()->getDB( $index );
diff --git a/includes/pages/CreatePage.php b/includes/pages/CreatePage.php
index 1f12a83..4cba7c7 100644
--- a/includes/pages/CreatePage.php
+++ b/includes/pages/CreatePage.php
@@ -736,7 +736,7 @@
/**
* Insert an entry into the securepoll_entities table, and return the ID
*
- * @param IDatabase $dbw
+ * @param \Wikimedia\Rdbms\IDatabase $dbw
* @param string $type Entity type
* @return int
*/
@@ -756,7 +756,7 @@
/**
* Save properties and messages for an entity
*
- * @param IDatabase $dbw
+ * @param \Wikimedia\Rdbms\IDatabase $dbw
* @param int $id
* @param SecurePoll_Entity $entity
* @return array
--
To view, visit https://gerrit.wikimedia.org/r/399915
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1dcfa1b3aad084df2c3a5d6d48afe13e8ff31e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits