* @ingroup SpecialPage
*/
class UploadSourceAdapter {
- /** @var array */
- public static $sourceRegistrations = array();
+ /** @var ImportSource[] */
+ public static $sourceRegistrations = [];
- /** @var string */
+ /** @var ImportSource */
private $mSource;
/** @var string */
/**
* @param string $path
* @param string $mode
- * @param array $options
- * @param string $opened_path
+ * @param int $options
+ * @param string &$opened_path
* @return bool
*/
function stream_open( $path, $mode, $options, &$opened_path ) {
/**
* @param string $data
- * @return bool
+ * @return false
*/
function stream_write( $data ) {
return false;
}
/**
- * @return mixed
+ * @return int
*/
function stream_tell() {
return $this->mPosition;
}
/**
- * @return array
+ * @return int[]
*/
function url_stat() {
- $result = array();
+ $result = [];
$result['dev'] = $result[0] = 0;
$result['ino'] = $result[1] = 0;