-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Redis::keys may return false? #2154
Comments
This is correct. In actuality, most PhpRedis methods may return I made #2015 to make this clear in our stub file but we haven't merged it yet as it likely requires a major version bump. |
Good to know. It would be good to at least fix the stub to match the behavior of the code. So what does it mean when Redis::keys returns false, is it the same as an empty array? Or does it mean an error happened? |
Closing as #2015 was merged. The stubs should be correct now. |
Expected behaviour
Redis::keys
should always return an array according to documentation.Actual behaviour
It seems it returns false in some cases according to the trace we get here:
nextcloud/server#34155
I'm seeing this behaviour on
Steps to reproduce, backtrace or example script
See nextcloud/server#34155
I've checked
develop
branchThe text was updated successfully, but these errors were encountered: