From 258f6dc1a29ac74e04f95f09242275c774a2fca5 Mon Sep 17 00:00:00 2001 From: Tom Klingenberg Date: Wed, 11 Nov 2020 20:06:17 +0100 Subject: [PATCH] Reference co-relating code sequence for tty test, refs #9454 --- src/Composer/Console/Application.php | 1 + src/Composer/Util/ProcessExecutor.php | 1 + 2 files changed, 2 insertions(+) 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)) ) {