Explorar el Código

Update RequireCommand.php

Jáchym Toušek hace 5 años
padre
commit
3bf46a77f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/Command/RequireCommand.php

+ 1 - 1
src/Composer/Command/RequireCommand.php

@@ -248,7 +248,7 @@ EOT
         ;
 
         $status = $install->run();
-        if ($status !== 0) {
+        if ($status !== 0 || $input->getOption('dry-run')) {
             $this->revertComposerFile(false);
         }