From 5d8fd152f3e86cbce2fbb7bbc4ecb7a744576026 Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Mon, 2 Jun 2014 12:03:14 +0200 Subject: [PATCH] Correct doc of WikiImporter::__construct parameter Change-Id: I0c61bb4f8d1e51f3b58ff99a9c632561dfd5134d --- includes/Import.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Import.php b/includes/Import.php index 79df693e46..177d0230fb 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -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; -- 2.20.1