-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Labels
Milestone

Description
Bug report
PHPStan does not detect the parameter values passed to the rand() function. In my example snippet, you can see how it fails to understand that the input is always set, because the input values are either 1 or 2.
Code snippet that reproduces the problem
https://phpstan.org/r/0a3522ab-1db0-4fe5-96af-bec1b3a60ee1
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is awesome, thank you!