Skip to content

Commit 62c8349

Browse files
Merge branch '2.8' into 3.4
* 2.8: [DomCrawler] Fix ChoiceFormField::select() PHPDoc [HttpFoundation] add tests for FlashBagInterface::setAll() Check for Hyper terminal on all operating systems. Prevent toolbar links color override by css
2 parents 1cdaa75 + 93a9a78 commit 62c8349

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

DeprecationErrorHandler.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,16 @@ private static function hasColorSupport()
311311
return false;
312312
}
313313

314+
if ('Hyper' === getenv('TERM_PROGRAM')) {
315+
return true;
316+
}
317+
314318
if (DIRECTORY_SEPARATOR === '\\') {
315319
return (function_exists('sapi_windows_vt100_support')
316320
&& sapi_windows_vt100_support(STDOUT))
317321
|| false !== getenv('ANSICON')
318322
|| 'ON' === getenv('ConEmuANSI')
319-
|| 'xterm' === getenv('TERM')
320-
|| 'Hyper' === getenv('TERM_PROGRAM');
323+
|| 'xterm' === getenv('TERM');
321324
}
322325

323326
if (function_exists('stream_isatty')) {

0 commit comments

Comments
 (0)