Correct doc of WikiImporter::__construct parameter
authorAdrian Lang <adrian.lang@wikimedia.de>
Mon, 2 Jun 2014 10:03:14 +0000 (12:03 +0200)
committerAdrian Lang <adrian.lang@wikimedia.de>
Mon, 2 Jun 2014 10:09:15 +0000 (12:09 +0200)
Change-Id: I0c61bb4f8d1e51f3b58ff99a9c632561dfd5134d

includes/Import.php

index 79df693..177d023 100644 (file)
@@ -40,9 +40,9 @@ class WikiImporter {
 
        /**
         * Creates an ImportXMLReader drawing from the source provided
-        * @param string $source
+        * @param ImportStreamSource $source
         */
-       function __construct( $source ) {
+       function __construct( ImportStreamSource $source ) {
                $this->reader = new XMLReader();
 
                if ( !in_array(  'uploadsource', stream_get_wrappers() ) ) {
@@ -944,10 +944,10 @@ class UploadSourceAdapter {
        private $mPosition;
 
        /**
-        * @param string $source
+        * @param ImportStreamSource $source
         * @return string
         */
-       static function registerSource( $source ) {
+       static function registerSource( ImportStreamSource $source ) {
                $id = wfRandomString();
 
                self::$sourceRegistrations[$id] = $source;