diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 505efca90..1a96a45b5 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -234,11 +234,15 @@ class Installer return $res; } } catch (\Exception $e) { - $this->installationManager->notifyInstalls($this->io); + if (!$this->dryRun) { + $this->installationManager->notifyInstalls($this->io); + } throw $e; } - $this->installationManager->notifyInstalls($this->io); + if (!$this->dryRun) { + $this->installationManager->notifyInstalls($this->io); + } // output suggestions if we're in dev mode if ($this->devMode) {