Skip to content

Commit

Permalink
Update TweetSearch.php to fix a bug on maxResults
Browse files Browse the repository at this point in the history
  • Loading branch information
noweh committed Dec 7, 2021
1 parent 3cedc42 commit bf98193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TweetSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected function constructEndpoint(): string
$endpoint .= '%20has:media';
}

if ($this->maxResults) {
if (!empty($this->maxResults) && $this->maxResults) {
$endpoint .= '&max_results=' . $this->maxResults;
}

Expand Down

0 comments on commit bf98193

Please sign in to comment.