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

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

Open
bennnjamin opened this issue Mar 26, 2024 · 0 comments
Open

Comments

@bennnjamin
Copy link

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/

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

No branches or pull requests

1 participant