Skip to content

Commit 16ed5bd

Browse files
Merge branch '5.4' into 6.4
* 5.4: [PhpUnitBridge][VarDumper] fix color detection [CI] Make sure we preserve file->header when we run sync-translations.php Review validators.sl.xlf
2 parents 5f3e4ab + c4d9785 commit 16ed5bd

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
@@ -412,13 +412,10 @@ private static function hasColorSupport()
412412
}
413413

414414
if (!self::isTty()) {
415-
return true;
415+
return false;
416416
}
417417

418-
if ('\\' === \DIRECTORY_SEPARATOR
419-
&& \function_exists('sapi_windows_vt100_support')
420-
&& @sapi_windows_vt100_support(\STDOUT)
421-
) {
418+
if ('\\' === \DIRECTORY_SEPARATOR && \function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(\STDOUT)) {
422419
return true;
423420
}
424421

0 commit comments

Comments
 (0)