From 9c30aa594dbf593ac9cedd4c740a7e288de242e1 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Fri, 10 May 2024 09:02:48 -0400 Subject: [PATCH] use stat() call instead --- src/Console/Process.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Process.php b/src/Console/Process.php index 6d98caee..2b040d8d 100644 --- a/src/Console/Process.php +++ b/src/Console/Process.php @@ -25,8 +25,8 @@ public function setTty(bool $tty): static { if ($tty && '/' === \DIRECTORY_SEPARATOR) { try { - // will trigger an exception if open_basedir restrictions prevent /dev/tty access - $writable = is_writable('/dev/tty'); + // trigger exception if open_basedir restrictions prevent /dev/tty access + $stat = stat('/dev/tty'); } catch (\Throwable $e) { throw new RuntimeException($e->getMessage()); }