Skip to content

Commit 87186b2

Browse files
Merge branch '7.0' into 7.1
* 7.0: Fix merge
2 parents 39e4f04 + 28e6563 commit 87186b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
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)