diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 23421f666..8c508eaa0 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -226,7 +226,7 @@ class Installer } if ($this->runScripts) { - $_SERVER['COMPOSER_DEV_MODE'] = (int) $this->devMode; + $_SERVER['COMPOSER_DEV_MODE'] = $this->devMode ? '1' : '0'; putenv('COMPOSER_DEV_MODE='.$_SERVER['COMPOSER_DEV_MODE']); // dispatch pre event