Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modernize: use PHP_OS_FAMILY constant (follow-up)
Follow up on PR 1035, this commit simplifies one more "is this Windows ?" check.
  • Loading branch information
jrfnl committed Jun 4, 2025
commit 5d76334cfc135c26baa357c9aa007072f4f2309e
2 changes: 1 addition & 1 deletion src/Util/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down