Skip to content

Commit

Permalink
Correctly fetch total results value.
Browse files Browse the repository at this point in the history
  • Loading branch information
slashrsm committed Mar 15, 2022
1 parent ab94fd0 commit 9cfe4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Abstracts/AbstractResultParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get($key, $default = null)
*/
public function getTotal()
{
return $this->get('hits.total');
return $this->get('hits.total')['value'];
}

/**
Expand Down

0 comments on commit 9cfe4ce

Please sign in to comment.