Skip to content

Commit 018c84f

Browse files
committed
revert line deletion
1 parent 6c49d2d commit 018c84f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

system/CLI/CLI.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,22 @@ public static function init()
150150
// much more bash-like.
151151
// http://www.php.net/manual/en/readline.installation.php
152152
static::$readline_support = extension_loaded('readline');
153+
153154
// clear segments & options to keep testing clean
154155
static::$segments = [];
155156
static::$options = [];
157+
156158
// Check our stream resource for color support
157159
static::$isColored = static::hasColorSupport(STDOUT);
160+
158161
static::parseCommandLine();
162+
159163
static::$initialized = true;
164+
// See: https://github.com/codeigniter4/CodeIgniter4/issues/7047
160165
} elseif (! defined('STDOUT')) {
166+
// @codeCoverageIgnoreStart
161167
define('STDOUT', 'php://output');
162-
// @codeCoverageIgnore
168+
// @codeCoverageIgnoreEnd
163169
}
164170
}
165171

0 commit comments

Comments
 (0)