diff --git a/src/Util/Common.php b/src/Util/Common.php index 586548bcaf..29be585295 100644 --- a/src/Util/Common.php +++ b/src/Util/Common.php @@ -218,7 +218,7 @@ public static function isStdinATTY() } // Next try is detecting whether we have `tty` installed and use that. - if (defined('PHP_WINDOWS_VERSION_PLATFORM') === true) { + if (PHP_OS_FAMILY === 'Windows') { $devnull = 'NUL'; $which = 'where'; } else {