Quellcode durchsuchen

Add throws declaration for FileDownloader::extract()

Kirill chEbba Chebunin vor 13 Jahren
Ursprung
Commit
7527d0af43
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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);
 }