Skip to content

Commit 97e6e02

Browse files
committed
Fixed interactive mode
1 parent b70a617 commit 97e6e02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CLI/Console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static public function confirm(string $question)
9595
if(!self::isInteractive()) {
9696
return null;
9797
}
98-
98+
9999
self::log($question);
100100

101101
$handle = \fopen('php://stdin', 'r');
@@ -179,6 +179,6 @@ static public function execute(string $cmd, string $stdin = null, string &$stdou
179179
*/
180180
static public function isInteractive(): bool
181181
{
182-
return ('cli' === PHP_SAPI && ! defined('STDOUT'));
182+
return ('cli' === PHP_SAPI && defined('STDOUT'));
183183
}
184184
}

0 commit comments

Comments
 (0)