Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

keys method return type #50

Open
Open

Description

@moefar

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.

Activity

  1. ukko commented on Jul 28, 2019

    @ukko
    Owner

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

  2. scaytrase commented on Jan 28, 2020

    @scaytrase

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions