diff --git a/DeprecationErrorHandler.php b/DeprecationErrorHandler.php index 72fd00f..79d8a88 100644 --- a/DeprecationErrorHandler.php +++ b/DeprecationErrorHandler.php @@ -412,13 +412,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; }