From 0b523edeb0ad11d1a1a00c046cc299595c637bdd Mon Sep 17 00:00:00 2001 From: "hubert.lenoir" Date: Mon, 29 Jan 2024 09:12:17 +0100 Subject: [PATCH] Fix PHPStan conditional return type on Search::count --- src/Search.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Search.php b/src/Search.php index 826f17965..2c4d9242c 100644 --- a/src/Search.php +++ b/src/Search.php @@ -318,6 +318,8 @@ public function search($query = '', ?array $options = null, string $method = Req * @throws ResponseException * * @return int|ResultSet + * + * @phpstan-return ($fullResult is false ? int : ResultSet) */ public function count($query = '', bool $fullResult = false, string $method = Request::POST) {