8000 Bad deprecation when using $type=null with Redis::scan · Issue #2362 · phpredis/phpredis · GitHub
[go: up one dir, main page]

Skip to content

Bad deprecation when using $type=null with Redis::scan #2362

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

Closed
nicolas-grekas opened this issue Jul 27, 2023 · 0 comments · Fixed by #2363
Closed

Bad deprecation when using $type=null with Redis::scan #2362

nicolas-grekas opened this issue Jul 27, 2023 · 0 comments · Fixed by #2363

Comments

@nicolas-grekas
Copy link
Contributor
nicolas-grekas commented Jul 27, 2023

Redis::scan is defined as:

public function scan(?int &$iterator, ?string $pattern = null, int $count = 0, string $type = NULL): array|false;

Yet, if we call the method with $type = null, we get a deprecation:
Redis::scan(): Passing null to parameter #4 ($type) of type string is deprecated

I suppose the argument is missing a nullable flag in its arginfo definition.

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

Successfully merging a pull request may close this issue.

1 participant
0