Skip to content

Commit

Permalink
fix: infer generic type from expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Oct 21, 2023
1 parent 811ef27 commit 2cdd5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
*
* @template TValue
*
* @param TValue|null $value
* @return Expectation<TValue|null>
* @param TValue $value
* @return Expectation<TValue>
*/
function expect(mixed $value = null): Expectation
{
Expand Down

0 comments on commit 2cdd5e3

Please sign in to comment.