More precise md5/sha1 return type#3541
Conversation
|
This pull request has been marked as ready for review. |
|
If I understand correctly You are using numeric-string in case only numbers are used ? So it's non-falsy&numeric&lowercase|non-falsy&lowercase I dont think there is a benefit to specify that sometimes it's a fully numeric string |
|
great feedback. I like the simplified version a lot more. I am not yet used to thinking about numbers to be lowercase strings ;). this also means we can do similar stuff in the |
resources/functionMap.php
Outdated
There was a problem hiding this comment.
No need for the parentheses here.
|
Thank you! |
|
@staabm I'm not familiar with sha256 ; should the return type be updated too ? |
|
I am not familiar either. Tested a few inputs on https://emn178.github.io/online-tools/sha256.html and it seems you are right |
I'll do the PR as soon as I have confirmation this function really exists (cf my interrogation phpstan/phpstan#12048 (comment)) |
utilizing lowercase-string for this old school hashing functions
//cc @VincentLanglet