Browse Source

Add throws declaration for FileDownloader::extract()

Kirill chEbba Chebunin 13 năm trước cách đây
mục cha
commit
7527d0af43
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Composer/Downloader/FileDownloader.php

+ 2 - 0
src/Composer/Downloader/FileDownloader.php

@@ -105,6 +105,8 @@ abstract class FileDownloader implements DownloaderInterface
      *
      * @param string $file Extracted file
      * @param string $path Directory
+     *
+     * @throws \UnexpectedValueException If can not extract downloaded file to path
      */
     protected abstract function extract($file, $path);
 }