We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f5fa2e + b8127b6 commit bff6837Copy full SHA for bff6837
src/Platform.php
@@ -26,11 +26,9 @@ class Platform
26
{
27
public static function isInteractive(): bool
28
29
- $stdin = defined('STDIN') ? STDIN : fopen('php://stdin', 'r');
30
- $noInteractionEnv = ComposerPlatform::getEnv('COMPOSER_NO_INTERACTION');
+ $stdin = defined('STDIN') ? STDIN : fopen('php://stdin', 'r');
31
32
- return $noInteractionEnv !== false
33
- && $noInteractionEnv !== '1'
+ return ComposerPlatform::getEnv('COMPOSER_NO_INTERACTION') !== '1'
34
&& $stdin !== false
35
&& ComposerPlatform::isTty($stdin);
36
}
0 commit comments