Skip to content

Commit

Permalink
use stat() call instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed May 10, 2024
1 parent db77097 commit 9c30aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 9c30aa5

Please sign in to comment.