diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index cc7f61d9a..77ac06377 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -131,6 +131,7 @@ class Application extends BaseApplication if ( getenv('COMPOSER_NO_INTERACTION') + /* @see \Composer\Util\ProcessExecutor::executeTty - tty test */ || (function_exists('stream_isatty') && !stream_isatty(STDOUT)) || (function_exists('posix_isatty') && !posix_isatty(STDOUT)) ) { diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index 6f557b9c9..1f55f6144 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/src/Composer/Util/ProcessExecutor.php @@ -78,6 +78,7 @@ class ProcessExecutor public function executeTty($command, $cwd = null) { if ( + /* @see \Composer\Console\Application::doRun - tty test */ (function_exists('stream_isatty') && !stream_isatty(STDOUT)) || (function_exists('posix_isatty') && !posix_isatty(STDOUT)) ) {