Skip to content

Commit

Permalink
Fix undefined STDIN (#48559)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Sep 27, 2023
1 parent 13dcd8f commit 8d4bc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Concerns/ConfiguresPrompts.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function configurePrompts(InputInterface $input)
{
Prompt::setOutput($this->output);

Prompt::interactive(($input->isInteractive() && stream_isatty(STDIN)) || $this->laravel->runningUnitTests());
Prompt::interactive(($input->isInteractive() && defined('STDIN') && stream_isatty(STDIN)) || $this->laravel->runningUnitTests());

Prompt::fallbackWhen(windows_os() || $this->laravel->runningUnitTests());

Expand Down

0 comments on commit 8d4bc1c

Please sign in to comment.