Skip to content

Commit

Permalink
Fix PHPStan conditional return type on Search::count (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Beru authored Jan 29, 2024
1 parent 85e36c8 commit b3840db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ public function search($query = '', ?array $options = null, string $method = Req
* @throws ClientException
*
* @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 b3840db

Please sign in to comment.