Procházet zdrojové kódy

Fix output of first line of progress when output is not decorated, refs #3818

Jordi Boggiano před 10 roky
rodič
revize
331425bcb3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
src/Composer/Util/RemoteFilesystem.php

@@ -158,7 +158,7 @@ class RemoteFilesystem
         $ctx = StreamContextFactory::getContext($fileUrl, $options, array('notification' => array($this, 'callbackGet')));
 
         if ($this->progress) {
-            $this->io->writeError("    Downloading: <comment>connection...</comment>", false);
+            $this->io->writeError("    Downloading: <comment>connection...</comment>", !$this->io->isDecorated());
         }
 
         $errorMessage = '';