diff --git a/includes/api/ApiImportReporter.php b/includes/api/ApiImportReporter.php index 21d9d235dc5..be53c67c331 100644 --- a/includes/api/ApiImportReporter.php +++ b/includes/api/ApiImportReporter.php @@ -29,13 +29,13 @@ class ApiImportReporter extends ImportReporter { /** * @param Title $title - * @param Title $origTitle + * @param ForeignTitle $foreignTitle * @param int $revisionCount * @param int $successCount * @param array $pageInfo * @return void */ - public function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) { + public function reportPage( $title, $foreignTitle, $revisionCount, $successCount, $pageInfo ) { // Add a result entry $r = []; @@ -51,7 +51,7 @@ class ApiImportReporter extends ImportReporter { $this->mResultArr[] = $r; // Piggyback on the parent to do the logging - parent::reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ); + parent::reportPage( $title, $foreignTitle, $revisionCount, $successCount, $pageInfo ); } public function getData() { diff --git a/includes/export/DumpFileOutput.php b/includes/export/DumpFileOutput.php index 4bec7d4532b..d0256fd877f 100644 --- a/includes/export/DumpFileOutput.php +++ b/includes/export/DumpFileOutput.php @@ -27,7 +27,10 @@ * @ingroup Dump */ class DumpFileOutput extends DumpOutput { - protected $handle = false, $filename; + /** @var resource|false */ + protected $handle = false; + /** @var string */ + protected $filename; /** * @param string $file @@ -73,7 +76,7 @@ class DumpFileOutput extends DumpOutput { } /** - * @param array $newname + * @param string|string[] $newname * @return string * @throws MWException */ diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php index fe6dadfe22f..3ab88e29279 100644 --- a/includes/export/WikiExporter.php +++ b/includes/export/WikiExporter.php @@ -125,7 +125,7 @@ class WikiExporter { * various row objects and XML output for filtering. Filters * can be chained or used as callbacks. * - * @param DumpOutput &$sink + * @param DumpOutput|DumpFilter &$sink */ public function setOutputSink( &$sink ) { $this->sink =& $sink; @@ -240,7 +240,7 @@ class WikiExporter { * Not called by default (depends on $this->list_authors) * Can be set by Special:Export when not exporting whole history * - * @param array $cond + * @param string $cond */ protected function do_list_authors( $cond ) { $this->author_list = ""; diff --git a/includes/import/WikiImporter.php b/includes/import/WikiImporter.php index 00bb61f7b28..68f5b9b8bfc 100644 --- a/includes/import/WikiImporter.php +++ b/includes/import/WikiImporter.php @@ -466,7 +466,7 @@ class WikiImporter { /** * Notify the callback function when a new "" is reached. - * @param Title $title + * @param array $title */ function pageCallback( $title ) { if ( isset( $this->mPageCallback ) ) { diff --git a/includes/import/WikiRevision.php b/includes/import/WikiRevision.php index cae954215af..e36d6734995 100644 --- a/includes/import/WikiRevision.php +++ b/includes/import/WikiRevision.php @@ -352,7 +352,7 @@ class WikiRevision implements ImportableUploadRevision, ImportableOldRevision { /** * @since 1.12.2 - * @param array $params + * @param string $params */ public function setParams( $params ) { $this->params = $params;