From 6630519882a2ca86e402baa62506a70fc4482235 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 5 Jun 2020 16:01:39 +0200 Subject: [PATCH] Fix #8298 for COMPOSER_DEV_MODE --- src/Composer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 5fcc6efa2..c5c0f7a21 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -200,7 +200,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