diff --git a/src/HigherOrderExpectation.php b/src/HigherOrderExpectation.php index 4cb6fc49..e436da0c 100644 --- a/src/HigherOrderExpectation.php +++ b/src/HigherOrderExpectation.php @@ -66,11 +66,15 @@ final class HigherOrderExpectation /** * Creates a new expectation. * - * @param mixed $value + * @template TValue + * + * @param TValue $value + * + * @return Expectation */ - public function and($value): HigherOrderExpectation + public function and($value): Expectation { - return new self($this->expect($value), $value); + return $this->expect($value); } /**