Skip to content

Commit

Permalink
Fix docblocks for throw_if and throw_unless. (#48003)
Browse files Browse the repository at this point in the history
* Fix docblocks for throw_if and throw_unless.

* Re-order docblock types.
  • Loading branch information
AbdelElrafa committed Aug 9, 2023
1 parent ba2fab3 commit 58a8f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/helpers.php
Expand Up @@ -317,7 +317,7 @@ function tap($value, $callback = null)
* @template TException of \Throwable
*
* @param mixed $condition
* @param TException|class-string<TException> $exception
* @param TException|class-string<TException>|string $exception
* @param mixed ...$parameters
* @return mixed
*
Expand All @@ -344,7 +344,7 @@ function throw_if($condition, $exception = 'RuntimeException', ...$parameters)
* @template TException of \Throwable
*
* @param mixed $condition
* @param TException|class-string<TException> $exception
* @param TException|class-string<TException>|string $exception
* @param mixed ...$parameters
* @return mixed
*
Expand Down

0 comments on commit 58a8f80

Please sign in to comment.