We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5bf9e commit c85ac54Copy full SHA for c85ac54
CHANGELOG.md
@@ -10,6 +10,7 @@ CHANGELOG
10
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
11
* added `UuidCaster`
12
* made all casters final
13
+ * added support for the `NO_COLOR` env var (https://no-color.org/)
14
15
4.3.0
16
-----
Dumper/CliDumper.php
@@ -582,6 +582,11 @@ private function hasColorSupport($stream): bool
582
return false;
583
}
584
585
+ // Follow https://no-color.org/
586
+ if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
587
+ return false;
588
+ }
589
+
590
if ('Hyper' === getenv('TERM_PROGRAM')) {
591
return true;
592
0 commit comments