Skip to content

Commit

Permalink
[Console] Constant STDOUT might be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored and chalasr committed Nov 13, 2019
1 parent e2890df commit 4225009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Terminal.php
Expand Up @@ -98,7 +98,7 @@ private static function initDimensions()
*/
private static function hasVt100Support(): bool
{
return \function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT);
return \function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(fopen('php://stdout', 'w'));
}

/**
Expand Down

0 comments on commit 4225009

Please sign in to comment.