Skip to content

Commit

Permalink
Merge pull request #1034 from spiral/bugfix/file_descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Dec 19, 2023
1 parent 218ca19 commit a5173ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console.php
Expand Up @@ -156,7 +156,7 @@ private function configureIO(InputInterface $input, OutputInterface $output): vo
$inputStream = $input->getStream();
}

if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
if ($inputStream !== null && !@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
$input->setInteractive(false);
}
}
Expand Down

0 comments on commit a5173ba

Please sign in to comment.