fix: infer generic type from expectation

This commit is contained in:
Nuno Maduro
2023-10-21 11:06:26 +01:00
parent 811ef27ee4
commit 2cdd5e3ba0

View File

@ -24,8 +24,8 @@ if (! function_exists('expect')) {
* *
* @template TValue * @template TValue
* *
* @param TValue|null $value * @param TValue $value
* @return Expectation<TValue|null> * @return Expectation<TValue>
*/ */
function expect(mixed $value = null): Expectation function expect(mixed $value = null): Expectation
{ {