Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b564cb

Browse files
committed
[Console] Constant STDOUT might be undefined.
1 parent 4bc7e9c commit 1b564cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static function initDimensions()
9898
*/
9999
private static function hasVt100Support(): bool
100100
{
101-
return \function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT);
101+
return \function_exists('sapi_windows_vt100_support') && defined('STDOUT') && sapi_windows_vt100_support(STDOUT);
102102
}
103103

104104
/**

0 commit comments

Comments
 (0)