Open fluffycondor opened 2 years ago
I found these snippets:
You just need to change the assertion layout a bit: https://psalm.dev/r/e9953d77a7
I found these snippets:
Yeah, a few things:
Likewise, it would be easy to add here
Not so easy as it would be. ctype_*
functions return true not only for asserted strings but also for some ASCII codes passed as int. That "but" can be ignored though, because passing ASCII codes is deprecated in PHP 8.1.
But I'd like to stub it properly. Now looks like #8421 prevents me from doing it.
ctype_* functions return true not only for asserted strings but also for some ASCII codes passed as int.
doesn't matter a lot, all of that will be considered numeric. Psalm reconciliation should do the rest
https://psalm.dev/r/bf49f34907
A real-world example, quite easy, but it's a hard one for a static analyzer. I'd be nice to see
int<2022, max>
there someday :)