From 05f44ed84a668954c56ca2cb8eed0477a37aa7b0 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 29 Nov 2021 10:06:00 +0100 Subject: [PATCH] fix phpstan --- src/Expectation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {