Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -15,9 +15,9 @@ class Streams {
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));
}
}
@ -160,7 +160,7 @@ class Streams {
* @return string The users input.
* @see cli\input()
*/
public static function prompt( $question, $default = null, $marker = ': ', $hide = false ) {
public static function prompt( $question, $default = false, $marker = ': ', $hide = false ) {
if( $default && strpos( $question, '[' ) === false ) {
$question .= ' [' . $default . ']';
}