diff --git a/src/Helpers/LocalMachineHelper.php b/src/Helpers/LocalMachineHelper.php index b7764c687..04f657dc0 100644 --- a/src/Helpers/LocalMachineHelper.php +++ b/src/Helpers/LocalMachineHelper.php @@ -104,7 +104,7 @@ public function executeFromCmd(string $cmd, callable $callback = NULL, string $c * @param array|null $env */ private function configureProcess(Process $process, string $cwd = NULL, ?bool $printOutput = TRUE, float $timeout = NULL, array $env = NULL, bool $stdin = TRUE): Process { - if (function_exists('posix_isatty') && !posix_isatty(STDIN) && $stdin) { + if (function_exists('posix_isatty') && !@posix_isatty(STDIN) && $stdin) { $process->setInput(STDIN); } if ($cwd) { @@ -183,7 +183,7 @@ public function useTty(): bool { // of a tty if stdout is redirected. // Otherwise, let the local machine helper decide whether to use a tty. if (function_exists('posix_isatty')) { - return (posix_isatty(STDOUT) && posix_isatty(STDIN)); + return (posix_isatty(STDOUT) && @posix_isatty(STDIN)); } return FALSE;