chore: adjusts return type

This commit is contained in:
Nuno Maduro
2022-12-29 09:31:17 +00:00
parent 476f56b617
commit 0fd5b2efe1

View File

@ -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']);
}