Skip to content

Commit

Permalink
Merge pull request #146 from dan-m-joh/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Aug 11, 2022
2 parents b6a91b0 + 80bb837 commit b565706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli/Streams.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ static function _call( $func, $args ) {

static public function isTty() {
if ( function_exists('stream_isatty') ) {
return !stream_isatty(static::$out);
return stream_isatty(static::$out);
} else {
return (function_exists('posix_isatty') && !posix_isatty(static::$out));
return (function_exists('posix_isatty') && posix_isatty(static::$out));
}
}

Expand Down

0 comments on commit b565706

Please sign in to comment.