Skip to content

Commit

Permalink
let return type reflect actual behavior with falsey values
Browse files Browse the repository at this point in the history
  • Loading branch information
crishoj authored Oct 14, 2024
1 parent 1d7e000 commit 4f81bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function tap($value, $callback = null)
* @param TValue $condition
* @param TException|class-string<TException>|string $exception
* @param mixed ...$parameters
* @return ($condition is true ? never : TValue)
* @return ($condition is non-empty-mixed ? never : TValue)
*
* @throws TException
*/
Expand Down Expand Up @@ -421,7 +421,7 @@ function throw_if($condition, $exception = 'RuntimeException', ...$parameters)
* @param TValue $condition
* @param TException|class-string<TException>|string $exception
* @param mixed ...$parameters
* @return ($condition is true ? TValue : never)
* @return ($condition is non-empty-mixed ? TValue : never)
*
* @throws TException
*/
Expand Down

0 comments on commit 4f81bf9

Please sign in to comment.