From 5d76334cfc135c26baa357c9aa007072f4f2309e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 29 May 2025 13:09:04 +0200 Subject: [PATCH] Modernize: use PHP_OS_FAMILY constant (follow-up) Follow up on PR 1035, this commit simplifies one more "is this Windows ?" check. --- src/Util/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {