Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79f6b85

Browse files
authored
Merge pull request #1 from bjauy/fix-stdout
2 parents 481c31b + f9762dd commit 79f6b85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/Cli.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ public static function isSupportColor(): bool
146146
return true;
147147
}
148148

149+
// fix for "Undefined constant STDOUT" error
150+
if (!\defined('STDOUT')) {
151+
return false;
152+
}
153+
149154
$stream = STDOUT;
150155
if (\DIRECTORY_SEPARATOR === '\\') {
151156
return (\function_exists('sapi_windows_vt100_support')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /