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
It seems that PHPStan is unable to detect that I've already checked that the second parameter is NOT one, thus there is no way for the array_rand function to actually return an int.
Bug report
It seems that PHPStan is unable to detect that I've already checked that the second parameter is NOT one, thus there is no way for the array_rand function to actually return an int.
Code snippet that reproduces the problem
https://phpstan.org/r/dd4af264-54b9-4c5c-a674-7dad5c089d5f
Expected output
I expected no error.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan helps me everyday write awesome open source code, thank you!
The text was updated successfully, but these errors were encountered: