import: Fix wrong/unspecific type hints in UploadSourceAdapter

Change-Id: I76e2fba8eab11e1669b1745b9ed8b9c3c8c39caa
This commit is contained in:
Thiemo Kreuz 2019-03-27 10:36:54 +01:00
parent 8a0f5676c9
commit 7005b48458

View file

@ -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 = [];