Skip to content

Crash when using RedisMap::getValue on hash where field does not exist #87

Open
@bennnjamin

Description

@bennnjamin

RedisMap/Hash can return null if the field does not exist in the hash. Just need to change string to ?string

public function getValue(string $field): string

Redis Doc: https://redis.io/commands/hget/

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