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
*
* @param TValue|null $value
* @return Expectation<TValue|null>
* @param TValue $value
* @return Expectation<TValue>
*/
function expect(mixed $value = null): Expectation
{