Skip to content

Commit

Permalink
Add @throws in doc-blocks (#49091)
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 authored Nov 22, 2023
1 parent 2d55870 commit 86a5976
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Process/FakeProcessResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ public function seeInErrorOutput(string $output)
*
* @param callable|null $callback
* @return $this
*
* @throws \Illuminate\Process\Exceptions\ProcessFailedException
*/
public function throw(callable $callback = null)
{
Expand All @@ -194,6 +196,8 @@ public function throw(callable $callback = null)
* @param bool $condition
* @param callable|null $callback
* @return $this
*
* @throws \Throwable
*/
public function throwIf(bool $condition, callable $callback = null)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Process/InvokedProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public function latestErrorOutput()
*
* @param callable|null $output
* @return \Illuminate\Process\ProcessResult
*
* @throws \Illuminate\Process\Exceptions\ProcessTimedOutException
*/
public function wait(callable $output = null)
{
Expand Down
3 changes: 3 additions & 0 deletions src/Illuminate/Process/PendingProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ public function options(array $options)
* @param array<array-key, string>|string|null $command
* @param callable|null $output
* @return \Illuminate\Contracts\Process\ProcessResult
*
* @throws \Illuminate\Process\Exceptions\ProcessTimedOutException
* @throws \RuntimeException
*/
public function run(array|string $command = null, callable $output = null)
{
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Process/ProcessResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public function seeInErrorOutput(string $output)
*
* @param callable|null $callback
* @return $this
*
* @throws \Illuminate\Process\Exceptions\ProcessFailedException
*/
public function throw(callable $callback = null)
{
Expand All @@ -135,6 +137,8 @@ public function throw(callable $callback = null)
* @param bool $condition
* @param callable|null $callback
* @return $this
*
* @throws \Throwable
*/
public function throwIf(bool $condition, callable $callback = null)
{
Expand Down

0 comments on commit 86a5976

Please sign in to comment.