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 6957593 commit c1a201dCopy full SHA for c1a201d
src/Printers/Console.php
@@ -105,8 +105,8 @@ protected function colorize(string $s, ?string $color): string
105
*/
106
protected function detectColorSupport(): bool
107
{
108
- return (function_exists('posix_isatty') && posix_isatty(STDOUT))
+ return defined('STDOUT') && ((function_exists('posix_isatty') && posix_isatty(STDOUT))
109
|| (function_exists('stream_isatty') && stream_isatty(STDOUT))
110
- || (function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT));
+ || (function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT)));
111
}
112
0 commit comments