Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Illuminate/Process/PendingProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ protected function toSymfonyProcess(array|string|null $command)
return $process;
}

/**
* Determine whether TTY is supported on the current operating system.
*
* @return bool
*/
public function supportsTty()
{
return Process::isTtySupported();
}

/**
* Specify the fake process result handlers for the pending process.
*
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Support/Facades/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* @method static \Illuminate\Process\PendingProcess withFakeHandlers(array $fakeHandlers)
* @method static \Illuminate\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
* @method static \Illuminate\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
* @method static bool supportsTty()
* @method static \Illuminate\Process\FakeProcessResult result(array|string $output = '', array|string $errorOutput = '', int $exitCode = 0)
* @method static \Illuminate\Process\FakeProcessDescription describe()
* @method static \Illuminate\Process\FakeProcessSequence sequence(array $processes = [])
Expand Down
Loading