diff --git a/src/Expectation.php b/src/Expectation.php index 750f875a..de21f198 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -274,7 +274,7 @@ final class Expectation /** * Dynamically calls methods on the class without any arguments. */ - public function __get(string $name): Expectation + public function __get(string $name) { /* @phpstan-ignore-next-line */ return $this->{$name}();