Эх сурвалжийг харах

Remove the Warning, because managed in the callbackGet notification

François Pluchino 13 жил өмнө
parent
commit
1c65fd2078

+ 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')));
         stream_context_set_params($ctx, array("notification" => array($this, 'callbackGet')));
 
 
         $this->io->overwrite("    Downloading: <comment>connection...</comment>", false);
         $this->io->overwrite("    Downloading: <comment>connection...</comment>", false);
-        copy($url, $fileName, $ctx);
+        @copy($url, $fileName, $ctx);
         $this->io->overwrite("    Downloading");
         $this->io->overwrite("    Downloading");
 
 
         if (!file_exists($fileName)) {
         if (!file_exists($fileName)) {