Merge "Allow partially blocked users to import images"
[lhc/web/wiklou.git] / includes / import / UploadSourceAdapter.php
index 1f49c8a..8768f07 100644 (file)
  * @ingroup SpecialPage
  */
 class UploadSourceAdapter {
-       /** @var array */
+       /** @var ImportSource[] */
        public static $sourceRegistrations = [];
 
-       /** @var string */
+       /** @var ImportSource */
        private $mSource;
 
        /** @var string */
@@ -56,8 +56,8 @@ class UploadSourceAdapter {
        /**
         * @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 ) {
@@ -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 = [];