From 8c0e2fadec55ef6bd454a137d5d964ec7e04ef13 Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Tue, 19 Dec 2023 10:23:33 +0200 Subject: [PATCH] Add null check --- src/Console/src/Console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/src/Console.php b/src/Console/src/Console.php index 3c12fbe56..e7cd5a64b 100644 --- a/src/Console/src/Console.php +++ b/src/Console/src/Console.php @@ -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); } }