diff --git a/src/Expectation.php b/src/Expectation.php index 7dd13fb2..86e1f121 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -262,7 +262,7 @@ final class Expectation * * @param array $parameters * - * @return Expectation|HigherOrderExpectation + * @return Expectation|HigherOrderExpectation, TValue> */ public function __call(string $method, array $parameters): Expectation|HigherOrderExpectation { @@ -314,7 +314,7 @@ final class Expectation * Dynamically calls methods on the class without any arguments * or creates a new higher order expectation. * - * @return Expectation|OppositeExpectation|Each|HigherOrderExpectation|TValue + * @return Expectation|OppositeExpectation|Each|HigherOrderExpectation, TValue|null>|TValue */ public function __get(string $name) {