Skip to content

Commit ed85aa5

Browse files
committed
fix: define of STDOUT in CLI init()
1 parent 6eaa945 commit ed85aa5

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
@@ -164,7 +164,9 @@ public static function init()
164164
} else {
165165
// If the command is being called from a controller
166166
// we need to define STDOUT ourselves
167-
define('STDOUT', 'php://output'); // @codeCoverageIgnore
167+
if (! defined('STDOUT')) {
168+
define('STDOUT', 'php://output'); // @codeCoverageIgnore
169+
}
168170
}
169171
}
170172

0 commit comments

Comments
 (0)