New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hash family functions signatures #880
Conversation
Perhaps you can modify more similar functions like |
a2052a4
to
cef0969
Compare
I just don't understand why there in |
I think it would also work for |
@@ -45,7 +45,7 @@ | |||
'get_resource_id' => ['int', 'res'=>'resource'], | |||
'gmdate' => ['string', 'format'=>'string', 'timestamp='=>'int'], | |||
'gmmktime' => ['int|false', 'hour'=>'int', 'minute='=>'int', 'second='=>'int', 'month='=>'int', 'day='=>'int', 'year='=>'int'], | |||
'hash_hkdf' => ['string', 'algo'=>'string', 'ikm'=>'string', 'length='=>'int', 'info='=>'string', 'salt='=>'string'], | |||
'hash_hmac' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'key'=>'string', 'binary='=>'bool'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you intentionally replace hash_hkdf
with hash_hmac
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, sorry :D
note: there is some overlap with #822 |
Then I think I could close this one as that PR is more complete :) it's just missing sha functions |
@norkunas the format of the config file is described at the top level comment, see phpstan-src/resources/functionMap.php Line 38 in 446a0c8
|
Thank you |
No description provided.