Skip to content

Commit 378340a

Browse files
committed
add comments
1 parent 018c84f commit 378340a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/CLI/CLI.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ public static function init()
161161
static::parseCommandLine();
162162

163163
static::$initialized = true;
164-
// See: https://github.com/codeigniter4/CodeIgniter4/issues/7047
165164
} elseif (! defined('STDOUT')) {
165+
// If the command is being called from a controller
166+
// we need to define STDOUT ourselves
167+
// For "! defined('STDOUT')" see: https://github.com/codeigniter4/CodeIgniter4/issues/7047
166168
// @codeCoverageIgnoreStart
167169
define('STDOUT', 'php://output');
168170
// @codeCoverageIgnoreEnd

0 commit comments

Comments
 (0)