Improper error for random_int params #13079
Unanswered
arleonard54
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When given an unknown
$max
param and incrementing$min
param, phpstan reports argument.type erroreven when explicitly checking for
$min < $max
.Reproducer on phpstan 2.1.11. Error is thrown on line 5:
This is true whenever
$Max
is based on unknown string; error is also reproducible in function with string input.Beta Was this translation helpful? Give feedback.
All reactions