Skip to content

Commit 58a8f80

Browse files
authored
Fix docblocks for throw_if and throw_unless. (#48003)
* Fix docblocks for throw_if and throw_unless. * Re-order docblock types.
1 parent ba2fab3 commit 58a8f80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Support/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function tap($value, $callback = null)
317317
* @template TException of \Throwable
318318
*
319319
* @param mixed $condition
320-
* @param TException|class-string<TException> $exception
320+
* @param TException|class-string<TException>|string $exception
321321
* @param mixed ...$parameters
322322
* @return mixed
323323
*
@@ -344,7 +344,7 @@ function throw_if($condition, $exception = 'RuntimeException', ...$parameters)
344344
* @template TException of \Throwable
345345
*
346346
* @param mixed $condition
347-
* @param TException|class-string<TException> $exception
347+
* @param TException|class-string<TException>|string $exception
348348
* @param mixed ...$parameters
349349
* @return mixed
350350
*

0 commit comments

Comments
 (0)