Merge pull request #9461 from ktomk/patch-9454-isatty

Reference co-relating code sequence for tty test, refs #9454
main
Jordi Boggiano 4 years ago committed by GitHub
commit 53412a3299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))
) {

@ -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))
) {

Loading…
Cancel
Save