phpredis-phpdoc
phpredis-phpdoc copied to clipboard
keys method return type
Hey guys
I have a situation when I want to get keys with a pattern using keys() method. I believe this method sometimes returns another type rather array.
Hello, may be method return bool? For example false, if connection is not stable?
Yeah, we are also facing this problem. We are getting boolean values
public function getNames(string $pattern = '*'): array
{
return $this->redis->keys($pattern);
}
fails with type violation - boolean given instead of array