From 7005b48458419ccc09a6990a5d1914dd61db2fbb Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Wed, 27 Mar 2019 10:36:54 +0100 Subject: [PATCH] import: Fix wrong/unspecific type hints in UploadSourceAdapter Change-Id: I76e2fba8eab11e1669b1745b9ed8b9c3c8c39caa --- includes/import/UploadSourceAdapter.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/import/UploadSourceAdapter.php b/includes/import/UploadSourceAdapter.php index ccacbe4a7c..8768f0740f 100644 --- a/includes/import/UploadSourceAdapter.php +++ b/includes/import/UploadSourceAdapter.php @@ -29,10 +29,10 @@ * @ingroup SpecialPage */ class UploadSourceAdapter { - /** @var array */ + /** @var ImportSource[] */ public static $sourceRegistrations = []; - /** @var string */ + /** @var ImportSource */ private $mSource; /** @var string */ @@ -56,7 +56,7 @@ class UploadSourceAdapter { /** * @param string $path * @param string $mode - * @param array $options + * @param int $options * @param string &$opened_path * @return bool */ @@ -104,14 +104,14 @@ class UploadSourceAdapter { /** * @param string $data - * @return bool + * @return false */ function stream_write( $data ) { return false; } /** - * @return mixed + * @return int */ function stream_tell() { return $this->mPosition; @@ -125,7 +125,7 @@ class UploadSourceAdapter { } /** - * @return array + * @return int[] */ function url_stat() { $result = []; -- 2.20.1