Browse Source

Update RequireCommand.php

Jáchym Toušek 5 years ago
parent
commit
3bf46a77f9
1 changed files with 1 additions and 1 deletions
  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);
         }