Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 7, 2024
1 parent 93c9a82 commit 07dce2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeprecationErrorHandler.php
Expand Up @@ -402,7 +402,7 @@ private static function hasColorSupport(): bool

// Detect msysgit/mingw and assume this is a tty because detection
// does not work correctly, see https://github.com/composer/composer/issues/9690
if (!@stream_isatty($stream) && !\in_array(strtoupper((string) getenv('MSYSTEM')), ['MINGW32', 'MINGW64'], true)) {
if (!@stream_isatty(\STDOUT) && !\in_array(strtoupper((string) getenv('MSYSTEM')), ['MINGW32', 'MINGW64'], true)) {
return true;
}

Expand Down

0 comments on commit 07dce2c

Please sign in to comment.