Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

3.0.8: Removed count function. Fixes #80 (#84)

Compare
Choose a tag to compare
@ErickTamayo ErickTamayo released this 24 Oct 15:45
· 13 commits to master since this release
Since php 7.2, count a number will generate a warning. Because
$results['hits']['total'] is a number we can just compare it to zero.

`if ($results['hits']['total'] === 0)`