From: Adrian Lang Date: Mon, 2 Jun 2014 10:03:14 +0000 (+0200) Subject: Correct doc of WikiImporter::__construct parameter X-Git-Tag: 1.31.0-rc.0~15507 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=5d8fd152f3e86cbce2fbb7bbc4ecb7a744576026;p=lhc%2Fweb%2Fwiklou.git Correct doc of WikiImporter::__construct parameter Change-Id: I0c61bb4f8d1e51f3b58ff99a9c632561dfd5134d --- 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;