Skip to content

Commit 3cdb34c

Browse files
committed
Suppress warning from sapi_windows_vt100_support on stream other than STDIO
1 parent 84ca41a commit 3cdb34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Output/StreamOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function hasColorSupport()
9090
{
9191
if (DIRECTORY_SEPARATOR === '\\') {
9292
return
93-
function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support($this->stream)
93+
function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support($this->stream)
9494
|| '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
9595
|| false !== getenv('ANSICON')
9696
|| 'ON' === getenv('ConEmuANSI')

0 commit comments

Comments
 (0)