Skip to content

Commit 87f19e9

Browse files
authored
Merge pull request #1115 from PHPCSStandards/phpcs-4.x/feature/modernize-windows-check-follow-up
Modernize: use PHP_OS_FAMILY constant (follow-up)
2 parents a14f001 + 5d76334 commit 87f19e9

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)