diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2020-11-14 01:19:30 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2020-11-15 09:44:00 +0000 |
commit | 4a702c545793ad4c26ac77c2f52b8f986f9b1f63 (patch) | |
tree | 7ef0cac11cb4a07ccdd12413f8f94bef0bb67607 /includes/export | |
parent | 60be0084fbd5f82e2d6ebf96c389a4601a143abf (diff) | |
download | mediawikicore-4a702c545793ad4c26ac77c2f52b8f986f9b1f63.tar.gz mediawikicore-4a702c545793ad4c26ac77c2f52b8f986f9b1f63.zip |
Change object to stdClass type hints in export related classes
Change-Id: Ifa09fe1f733a0bfdfdede5ccde0dc21c6c81b299
Diffstat (limited to 'includes/export')
-rw-r--r-- | includes/export/DumpFilter.php | 8 | ||||
-rw-r--r-- | includes/export/DumpLatestFilter.php | 4 | ||||
-rw-r--r-- | includes/export/DumpMultiWriter.php | 4 | ||||
-rw-r--r-- | includes/export/DumpNamespaceFilter.php | 2 | ||||
-rw-r--r-- | includes/export/DumpNotalkFilter.php | 2 | ||||
-rw-r--r-- | includes/export/DumpOutput.php | 6 | ||||
-rw-r--r-- | includes/export/WikiExporter.php | 10 |
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 = ''; |