You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 tonull
. During scan, this can become non-zero and returns to zero whenscanning is complete. Since
$iterator
is passed by reference, then its value could be changed to a non-zero int but phpstanthinks it will always stay as
null
.Expected output
No errors.
The text was updated successfully, but these errors were encountered: