mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
fix: infer generic type from expectation
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user