Преглед на файлове

Merge pull request #235 from francoispluchino/master

Remove the warning of copy() in FileDownloader
Jordi Boggiano преди 13 години
родител
ревизия
294217317b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Downloader/FileDownloader.php

+ 1 - 1
src/Composer/Downloader/FileDownloader.php

@@ -104,7 +104,7 @@ abstract class FileDownloader implements DownloaderInterface
         stream_context_set_params($ctx, array("notification" => array($this, 'callbackGet')));
 
         $this->io->overwrite("    Downloading: <comment>connection...</comment>", false);
-        copy($url, $fileName, $ctx);
+        @copy($url, $fileName, $ctx);
         $this->io->overwrite("    Downloading");
 
         if (!file_exists($fileName)) {