Skip to content

Commit c28ae0c

Browse files
neclimdulnicolas-grekas
authored andcommitted
Silence isatty warnings during tty detection
1 parent 602ff3a commit c28ae0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DeprecationErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ private static function hasColorSupport()
396396
}
397397

398398
if (\function_exists('stream_isatty')) {
399-
return stream_isatty(\STDOUT);
399+
return @stream_isatty(\STDOUT);
400400
}
401401

402402
if (\function_exists('posix_isatty')) {
403-
return posix_isatty(\STDOUT);
403+
return @posix_isatty(\STDOUT);
404404
}
405405

406406
$stat = fstat(\STDOUT);

0 commit comments

Comments
 (0)