diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 71fa13d9b..a789b4c88 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -233,13 +233,13 @@ class Installer return $res; } } catch (\Exception $e) { - if ($this->executeOperations) { + if ($this->executeOperations && $this->config->get('notify-on-install')) { $this->installationManager->notifyInstalls($this->io); } throw $e; } - if ($this->executeOperations) { + if ($this->executeOperations && $this->config->get('notify-on-install')) { $this->installationManager->notifyInstalls($this->io); }