Skip to content

Commit

Permalink
[PhpUnitBridge][VarDumper] fix color detection
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh authored and nicolas-grekas committed Feb 8, 2024
1 parent 286b9c9 commit c4d9785
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions DeprecationErrorHandler.php
Expand Up @@ -404,13 +404,10 @@ private static function hasColorSupport()
}

if (!self::isTty()) {
return true;
return false;
}

if ('\\' === \DIRECTORY_SEPARATOR
&& \function_exists('sapi_windows_vt100_support')
&& @sapi_windows_vt100_support(\STDOUT)
) {
if ('\\' === \DIRECTORY_SEPARATOR && \function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(\STDOUT)) {
return true;
}

Expand Down

0 comments on commit c4d9785

Please sign in to comment.