Adds type hinting

This commit is contained in:
luke
2021-06-18 22:01:16 +01:00
parent 4b55de27f1
commit 27de6106ab
4 changed files with 16 additions and 10 deletions

View File

@ -12,9 +12,12 @@ use Pest\Expectation;
trait Expectable
{
/**
* @template TValue
*
* Creates a new expectation.
*
* @param mixed $value
* @param TValue $value
* @return Expectation<TValue>
*/
public function expect($value): Expectation
{