Skip to content

Commit

Permalink
Fix PHPStan conditional return type on Search::count
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Beru committed Jun 30, 2023
1 parent 0f6b04b commit 37043b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ 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)
{
Expand Down

0 comments on commit 37043b0

Please sign in to comment.