Skip to content

Commit

Permalink
hscan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riki137 committed Apr 26, 2022
1 parent 5a4519c commit d0361a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public function hmget(string $key, ...$fields): array
* @return array|boolean|null list of found fields with associated values, returns null if $iterator is 0 or '0'
* @throws RedisProxyException
*/
public function hscan(string $key, &$iterator, ?string $pattern = null, ?int $count = null)
public function hscan(string $key, &$iterator, ?string $pattern = null, int $count = 0)
{
if ((string)$iterator === '0') {
return null;
Expand Down

0 comments on commit d0361a6

Please sign in to comment.