Explorar o código

Add throws declaration for FileDownloader::extract()

Kirill chEbba Chebunin %!s(int64=13) %!d(string=hai) anos
pai
achega
7527d0af43
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
 }