From 61db357cc1f2ba62535997cd30c59431106fa66b Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Wed, 27 Sep 2023 09:27:06 +1000 Subject: [PATCH] Fix undefined STDIN --- src/Illuminate/Console/Concerns/ConfiguresPrompts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php index b953db470cbc..da05a397a1da 100644 --- a/src/Illuminate/Console/Concerns/ConfiguresPrompts.php +++ b/src/Illuminate/Console/Concerns/ConfiguresPrompts.php @@ -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());