From 0fd5b2efe1843adfe5a9d526a5e5055746c511c4 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 29 Dec 2022 09:31:17 +0000 Subject: [PATCH] chore: adjusts return type --- src/Expectations/OppositeExpectation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Expectations/OppositeExpectation.php b/src/Expectations/OppositeExpectation.php index 67d47994..6fa22de7 100644 --- a/src/Expectations/OppositeExpectation.php +++ b/src/Expectations/OppositeExpectation.php @@ -112,7 +112,7 @@ final class OppositeExpectation /** * Asserts that the given expectation dependency is not used. */ - public function toBeUsedOnNothing(): ArchExpectation + public function toBeUsedOnNothing(): never { throw InvalidExpectation::fromMethods(['not', 'toBeUsedOnNothing']); }