From ee09b75be3842ecd10206cdba972e0a93e5e695a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 8 Apr 2020 15:55:51 +0200 Subject: [PATCH] Clean ups --- src/Composer/Command/RequireCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index c1bbae527..5b040b038 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -283,7 +283,6 @@ EOT ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs')) ->setPreferStable($input->getOption('prefer-stable')) ->setPreferLowest($input->getOption('prefer-lowest')) - ->setDryRun($input->getOption('dry-run')) ; // if no lock is present, or the file is brand new, we do not do a @@ -293,7 +292,7 @@ EOT } $status = $install->run(); - if ($status !== 0 || $input->getOption('dry-run')) { + if ($status !== 0) { $this->revertComposerFile(false); }