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

Does not recognize method signature of Redis::scan #4929

Closed
paulbalandan opened this issue Apr 30, 2021 · 2 comments
Closed

Does not recognize method signature of Redis::scan #4929

paulbalandan opened this issue Apr 30, 2021 · 2 comments
Labels
Milestone

Comments

@paulbalandan
Copy link

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/0f03de05-011d-4e7f-b835-150f5b6f7043

Using PHPStan 0.12.85, it seems it does not recognize the method signature of Redis::scan($iterator, $patter, $count).
$iterator is passed by reference and initially set to null. During scan, this can become non-zero and returns to zero when
scanning is complete. Since $iterator is passed by reference, then its value could be changed to a non-zero int but phpstan
thinks it will always stay as null.

Expected output

No errors.

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Apr 30, 2021
@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@8fe9e60

@github-actions
Copy link

github-actions bot commented Jun 5, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants