Skip to content

Commit c4d9785

Browse files
xabbuhnicolas-grekas
authored andcommitted
[PhpUnitBridge][VarDumper] fix color detection
1 parent 286b9c9 commit c4d9785

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

DeprecationErrorHandler.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,10 @@ private static function hasColorSupport()
404404
}
405405

406406
if (!self::isTty()) {
407-
return true;
407+
return false;
408408
}
409409

410-
if ('\\' === \DIRECTORY_SEPARATOR
411-
&& \function_exists('sapi_windows_vt100_support')
412-
&& @sapi_windows_vt100_support(\STDOUT)
413-
) {
410+
if ('\\' === \DIRECTORY_SEPARATOR && \function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(\STDOUT)) {
414411
return true;
415412
}
416413

0 commit comments

Comments
 (0)