redis icon indicating copy to clipboard operation
redis copied to clipboard

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

Open bennnjamin opened this issue 11 months ago • 0 comments

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

https://github.com/amphp/redis/blob/0b3f38d4f3cfd9d5c576d89d2002f82235c426a8/src/Command/RedisMap.php#L99

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

bennnjamin avatar Mar 26 '24 23:03 bennnjamin