Skip to content

Commit f507d24

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 dca3a24 + c85ac54 commit f507d24

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CHANGELOG
1010
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
1111
* added `UuidCaster`
1212
* made all casters final
13+
* added support for the `NO_COLOR` env var (https://no-color.org/)
1314

1415
4.3.0
1516
-----

Dumper/CliDumper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,11 @@ private function hasColorSupport($stream): bool
578578
return false;
579579
}
580580

581+
// Follow https://no-color.org/
582+
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
583+
return false;
584+
}
585+
581586
if ('Hyper' === getenv('TERM_PROGRAM')) {
582587
return true;
583588
}

0 commit comments

Comments
 (0)