mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
Simplification
This commit is contained in:
@ -66,11 +66,15 @@ final class HigherOrderExpectation
|
|||||||
/**
|
/**
|
||||||
* Creates a new expectation.
|
* Creates a new expectation.
|
||||||
*
|
*
|
||||||
* @param mixed $value
|
* @template TValue
|
||||||
|
*
|
||||||
|
* @param TValue $value
|
||||||
|
*
|
||||||
|
* @return Expectation<TValue>
|
||||||
*/
|
*/
|
||||||
public function and($value): HigherOrderExpectation
|
public function and($value): Expectation
|
||||||
{
|
{
|
||||||
return new self($this->expect($value), $value);
|
return $this->expect($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user