Skip to content

Commit 07dce2c

Browse files
Fix merge
1 parent 93c9a82 commit 07dce2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: DeprecationErrorHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private static function hasColorSupport(): bool
402402

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

0 commit comments

Comments
 (0)