Skip to content

Commit 3c288a1

Browse files
Merge branch '4.4'
* 4.4: [DI] fix locators with numeric keys Add support for NO_COLOR env var [DI][FrameworkBundle] add EnvVarLoaderInterface - remove SecretEnvVarProcessor Fix error when we use VO for the marking property [DI] Remove LazyString from 4.4, before adding back to the String component
2 parents aaf7fa7 + 7daa9d4 commit 3c288a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DeprecationErrorHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ private static function hasColorSupport()
345345
return false;
346346
}
347347

348+
// Follow https://no-color.org/
349+
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
350+
return false;
351+
}
352+
348353
if ('Hyper' === getenv('TERM_PROGRAM')) {
349354
return true;
350355
}

0 commit comments

Comments
 (0)