diff --git a/src/Composer/Package/Loader/ArrayLoader.php b/src/Composer/Package/Loader/ArrayLoader.php index f45dfb472..7e91cdac0 100644 --- a/src/Composer/Package/Loader/ArrayLoader.php +++ b/src/Composer/Package/Loader/ArrayLoader.php @@ -252,8 +252,10 @@ class ArrayLoader implements LoaderInterface foreach ($config['scripts'] as $event => $listeners) { $config['scripts'][$event] = (array) $listeners; } - if (isset($config['scripts']['composer'])) { - trigger_error('The `composer` script name is reserved for internal use, please avoid defining it', E_USER_DEPRECATED); + foreach (array('composer', 'php', 'putenv') as $reserved) { + if (isset($config['scripts'][$reserved])) { + trigger_error('The `'.$reserved.'` script name is reserved for internal use, please avoid defining it', E_USER_DEPRECATED); + } } $package->setScripts($config['scripts']); }