Explorar o código

Update RequireCommand.php

Jáchym Toušek %!s(int64=5) %!d(string=hai) anos
pai
achega
3bf46a77f9
Modificáronse 1 ficheiros con 1 adicións e 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);
         }