Improved generics for higher order

This commit is contained in:
luke
2021-11-27 18:48:58 +00:00
parent c49700dd47
commit beb14ce5f4
9 changed files with 212 additions and 35 deletions

View File

@ -18,7 +18,11 @@ if (!function_exists('expect')) {
/**
* Creates a new expectation.
*
* @param mixed $value the Value
* @template TValue
*
* @param TValue $value the Value
*
* @return Expectation<TValue>|Extendable
*/
function expect($value = null): Expectation|Extendable
{