Skip to content

Commit 760a863

Browse files
xabbuhnicolas-grekas
authored andcommitted
[PhpUnitBridge][VarDumper] fix color detection
1 parent 4074601 commit 760a863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/CliDumper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ private function hasColorSupport($stream): bool
613613
// Detect msysgit/mingw and assume this is a tty because detection
614614
// does not work correctly, see https://github.com/composer/composer/issues/9690
615615
if (!@stream_isatty($stream) && !\in_array(strtoupper((string) getenv('MSYSTEM')), ['MINGW32', 'MINGW64'], true)) {
616-
return true;
616+
return false;
617617
}
618618

619619
if ('\\' === \DIRECTORY_SEPARATOR && @sapi_windows_vt100_support($stream)) {

0 commit comments

Comments
 (0)