aboutsummaryrefslogtreecommitdiffstats
path: root/includes/export
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2020-11-18 00:24:00 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2020-11-18 00:24:00 +0000
commit625f0e53395a76d1a5efcaa8f59341b7de23759b (patch)
tree97e1dc46196cd197528f87a8fecc964f2d682a66 /includes/export
parent904d339287bc7e3c265315db1c8988973208abf6 (diff)
parent4a702c545793ad4c26ac77c2f52b8f986f9b1f63 (diff)
downloadmediawikicore-625f0e53395a76d1a5efcaa8f59341b7de23759b.tar.gz
mediawikicore-625f0e53395a76d1a5efcaa8f59341b7de23759b.zip
Merge "Change object to stdClass type hints in export related classes"
Diffstat (limited to 'includes/export')
-rw-r--r--includes/export/DumpFilter.php8
-rw-r--r--includes/export/DumpLatestFilter.php4
-rw-r--r--includes/export/DumpMultiWriter.php4
-rw-r--r--includes/export/DumpNamespaceFilter.php2
-rw-r--r--includes/export/DumpNotalkFilter.php2
-rw-r--r--includes/export/DumpOutput.php6
-rw-r--r--includes/export/WikiExporter.php10
7 files changed, 18 insertions, 18 deletions
diff --git a/includes/export/DumpFilter.php b/includes/export/DumpFilter.php
index 296a8d130ac8..c4f80ccb9b28 100644
--- a/includes/export/DumpFilter.php
+++ b/includes/export/DumpFilter.php
@@ -63,7 +63,7 @@ class DumpFilter {
}
/**
- * @param object $page
+ * @param stdClass $page
* @param string $string
*/
public function writeOpenPage( $page, $string ) {
@@ -84,7 +84,7 @@ class DumpFilter {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeRevision( $rev, $string ) {
@@ -94,7 +94,7 @@ class DumpFilter {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeLogItem( $rev, $string ) {
@@ -127,7 +127,7 @@ class DumpFilter {
/**
* Override for page-based filter types.
- * @param object $page
+ * @param stdClass $page
* @return bool
*/
protected function pass( $page ) {
diff --git a/includes/export/DumpLatestFilter.php b/includes/export/DumpLatestFilter.php
index 9d252e0a32af..5d155d2ba8b3 100644
--- a/includes/export/DumpLatestFilter.php
+++ b/includes/export/DumpLatestFilter.php
@@ -36,7 +36,7 @@ class DumpLatestFilter extends DumpFilter {
public $revString;
/**
- * @param object $page
+ * @param stdClass $page
* @param string $string
*/
public function writeOpenPage( $page, $string ) {
@@ -60,7 +60,7 @@ class DumpLatestFilter extends DumpFilter {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeRevision( $rev, $string ) {
diff --git a/includes/export/DumpMultiWriter.php b/includes/export/DumpMultiWriter.php
index 9bbc1b3c9c5f..ea9fe7991678 100644
--- a/includes/export/DumpMultiWriter.php
+++ b/includes/export/DumpMultiWriter.php
@@ -59,7 +59,7 @@ class DumpMultiWriter {
}
/**
- * @param object $page
+ * @param stdClass $page
* @param string $string
*/
public function writeOpenPage( $page, $string ) {
@@ -78,7 +78,7 @@ class DumpMultiWriter {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeRevision( $rev, $string ) {
diff --git a/includes/export/DumpNamespaceFilter.php b/includes/export/DumpNamespaceFilter.php
index 2014670d2701..46c556fa588c 100644
--- a/includes/export/DumpNamespaceFilter.php
+++ b/includes/export/DumpNamespaceFilter.php
@@ -81,7 +81,7 @@ class DumpNamespaceFilter extends DumpFilter {
}
/**
- * @param object $page
+ * @param stdClass $page
* @return bool
*/
protected function pass( $page ) {
diff --git a/includes/export/DumpNotalkFilter.php b/includes/export/DumpNotalkFilter.php
index 6b2a22a080ea..9d8d727ef0d0 100644
--- a/includes/export/DumpNotalkFilter.php
+++ b/includes/export/DumpNotalkFilter.php
@@ -30,7 +30,7 @@ use MediaWiki\MediaWikiServices;
*/
class DumpNotalkFilter extends DumpFilter {
/**
- * @param object $page
+ * @param stdClass $page
* @return bool
*/
protected function pass( $page ) {
diff --git a/includes/export/DumpOutput.php b/includes/export/DumpOutput.php
index 7f1a2367f83a..bee048c2eca2 100644
--- a/includes/export/DumpOutput.php
+++ b/includes/export/DumpOutput.php
@@ -43,7 +43,7 @@ class DumpOutput {
}
/**
- * @param object $page
+ * @param stdClass $page
* @param string $string
*/
public function writeOpenPage( $page, $string ) {
@@ -58,7 +58,7 @@ class DumpOutput {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeRevision( $rev, $string ) {
@@ -66,7 +66,7 @@ class DumpOutput {
}
/**
- * @param object $rev
+ * @param stdClass $rev
* @param string $string
*/
public function writeLogItem( $rev, $string ) {
diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php
index 15ffa5e385ee..1f51233419d9 100644
--- a/includes/export/WikiExporter.php
+++ b/includes/export/WikiExporter.php
@@ -497,8 +497,8 @@ class WikiExporter {
* and be sorted/grouped by page and revision to avoid duplicate page records in the output.
*
* @param IResultWrapper $results
- * @param object $lastRow the last row output from the previous call (or null if none)
- * @return object the last row processed
+ * @param stdClass $lastRow the last row output from the previous call (or null if none)
+ * @return stdClass the last row processed
*/
protected function outputPageStreamBatch( $results, $lastRow ) {
$rowCarry = null;
@@ -550,9 +550,9 @@ class WikiExporter {
* Takes and returns a carry row from the last batch;
*
* @param IResultWrapper|array $results
- * @param null|object &$carry A row carried over from the last call to getSlotRowBatch()
+ * @param null|stdClass &$carry A row carried over from the last call to getSlotRowBatch()
*
- * @return object[]
+ * @return stdClass[]
*/
protected function getSlotRowBatch( $results, &$carry = null ) {
$slotRows = [];
@@ -579,7 +579,7 @@ class WikiExporter {
/**
* Final page stream output, after all batches are complete
*
- * @param object $lastRow the last row output from the last batch (or null if none)
+ * @param stdClass $lastRow the last row output from the last batch (or null if none)
*/
protected function finishPageStreamOutput( $lastRow ) {
$output = '';