mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
This commit is contained in:
parent
c7f32820d7
commit
0d96fd8149
3 changed files with 56 additions and 3 deletions
|
@ -147,7 +147,7 @@ class Application extends BaseApplication
|
|||
$this->disableScriptsByDefault = $input->hasParameterOption('--no-scripts');
|
||||
|
||||
$stdin = defined('STDIN') ? STDIN : fopen('php://stdin', 'r');
|
||||
if (Platform::getEnv('COMPOSER_NO_INTERACTION') || $stdin === false || !Platform::isTty($stdin)) {
|
||||
if (Platform::getEnv('COMPOSER_TESTS_ARE_RUNNING') !== '1' && (Platform::getEnv('COMPOSER_NO_INTERACTION') || $stdin === false || !Platform::isTty($stdin))) {
|
||||
$input->setInteractive(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue