amphp / redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

Home Page:https://amphp.org/redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bennnjamin opened this issue · comments

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/