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 committed Nov 12, 2019
1 parent 4bc7e9c commit e1bfb48
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 e1bfb48

Please sign in to comment.