Skip to content

Commit 5d76334

Browse files
committed
Modernize: use PHP_OS_FAMILY constant (follow-up)
Follow up on PR 1035, this commit simplifies one more "is this Windows ?" check.
1 parent a14f001 commit 5d76334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public static function isStdinATTY()
218218
}
219219

220220
// Next try is detecting whether we have `tty` installed and use that.
221-
if (defined('PHP_WINDOWS_VERSION_PLATFORM') === true) {
221+
if (PHP_OS_FAMILY === 'Windows') {
222222
$devnull = 'NUL';
223223
$which = 'where';
224224
} else {

0 commit comments

Comments
 (0)