Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keys method return type #50

Open
moefar opened this issue May 30, 2019 · 2 comments
Open

keys method return type #50

moefar opened this issue May 30, 2019 · 2 comments

Comments

@moefar
Copy link

moefar commented May 30, 2019

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.

@ukko
Copy link
Owner

ukko commented Jul 28, 2019

Hello, may be method return bool? For example false, if connection is not stable?

@scaytrase
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants