Skip to content

Commit ba6e553

Browse files
Use ??= more
1 parent 00db88f commit ba6e553

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Process.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,11 +1204,7 @@ public static function isTtySupported(): bool
12041204
{
12051205
static $isTtySupported;
12061206

1207-
if (null === $isTtySupported) {
1208-
$isTtySupported = ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT));
1209-
}
1210-
1211-
return $isTtySupported;
1207+
return $isTtySupported ??= ('/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT));
12121208
}
12131209

12141210
/**

0 commit comments

Comments
 (0)