Explicitly declare ImportReporter::reportPage() and override public
authorSiebrand Mazeland <siebrand@kitano.nl>
Tue, 8 Mar 2016 07:33:38 +0000 (08:33 +0100)
committerAnomie <bjorsch@wikimedia.org>
Tue, 8 Mar 2016 16:13:36 +0000 (16:13 +0000)
Used as such in SpecialImport.php.

Change-Id: Ia8cb1f4b95f43a50ff7ddd9aa4cb3ffc90f916c8

includes/api/ApiImport.php
includes/specials/SpecialImport.php

index 8574dce..c5a8a71 100644 (file)
@@ -175,7 +175,7 @@ class ApiImportReporter extends ImportReporter {
         * @param array $pageInfo
         * @return void
         */
-       function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) {
+       public function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) {
                // Add a result entry
                $r = [];
 
index 72f8cca..fe1dd98 100644 (file)
@@ -581,7 +581,7 @@ class ImportReporter extends ContextSource {
         * @param array $pageInfo
         * @return void
         */
-       function reportPage( $title, $foreignTitle, $revisionCount,
+       public function reportPage( $title, $foreignTitle, $revisionCount,
                        $successCount, $pageInfo ) {
                $args = func_get_args();
                call_user_func_array( $this->mOriginalPageOutCallback, $args );